function template_preprocess_user_profile
Same name and namespace in other branches
- 6.x drupal-6.x/modules/user/user.pages.inc \template_preprocess_user_profile()
Process variables for user-profile.tpl.php.
The $variables array contains the following arguments:
- $account
See also
Archivo
- drupal-7.x/
modules/ user/ user.pages.inc, line 190 - User page callback file for the user module.
Código
function template_preprocess_user_profile(&$variables) {
$account = $variables['elements']['#account'];
// Helpful $user_profile variable for templates.
foreach (element_children($variables['elements']) as $key) {
$variables['user_profile'][$key] = $variables['elements'][$key];
}
// Preprocess fields.
field_attach_preprocess('user', $account, $variables['elements'], $variables);
}