function _profile_update_user_fields
7.x profile.module | _profile_update_user_fields($fields, $account) |
6.x profile.module | _profile_update_user_fields($fields, $account) |
Helper function: update an array of user fields by calling profile_view_field
2 calls to _profile_update_user_fields()
- profile_block_view in drupal-7.x/
modules/ profile/ profile.module - Implements hook_block_view().
- profile_browse in drupal-7.x/
modules/ profile/ profile.pages.inc - Menu callback; display a list of user information.
File
- drupal-7.x/
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;
}