function _profile_update_user_fields

Helper function: update an array of user fields by calling profile_view_field

2 calls to _profile_update_user_fields()
profile_block_view in modules/profile/profile.module
Implements hook_block_view().
profile_browse in modules/profile/profile.pages.inc
Menu callback; display a list of user information.

File

modules/profile/profile.module, line 472

Code

function _profile_update_user_fields($fields, $account) {
    foreach ($fields as $key => $field) {
        $fields[$key]->value = profile_view_field($account, $field);
    }
    return $fields;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.