function template_preprocess_user_profile_item
Same name and namespace in other branches
- 7.x drupal-7.x/modules/user/user.pages.inc \template_preprocess_user_profile_item()
Process variables for user-profile-item.tpl.php.
The $variables array contains the following arguments:
- $element
See also
Archivo
- drupal-6.x/
modules/ user/ user.pages.inc, line 203 - User page callback file for the user module.
Código
function template_preprocess_user_profile_item(&$variables) {
$variables['title'] = $variables['element']['#title'];
$variables['value'] = $variables['element']['#value'];
$variables['attributes'] = '';
if (isset($variables['element']['#attributes'])) {
$variables['attributes'] = drupal_attributes($variables['element']['#attributes']);
}
}