You are here

function _profile_update_user_fields in Drupal 4

Same name and namespace in other branches
  1. 5 modules/profile/profile.module \_profile_update_user_fields()
  2. 6 modules/profile/profile.module \_profile_update_user_fields()
  3. 7 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 in modules/profile.module
Implementation of hook_block().
profile_browse in modules/profile.module
Menu callback; display a list of user information.

File

modules/profile.module, line 694
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;
}