You are here

function _profile_update_user_fields in Drupal 7

Same name and namespace in other branches
  1. 4 modules/profile.module \_profile_update_user_fields()
  2. 5 modules/profile/profile.module \_profile_update_user_fields()
  3. 6 modules/profile/profile.module \_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
Support for configurable user profiles.

Code

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