You are here

function _profile_update_user_fields in Drupal 6

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. 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/profile.module
Implementation of hook_block().
profile_browse in modules/profile/profile.pages.inc
Menu callback; display a list of user information.

File

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