function template_preprocess_user_profile_item
template_preprocess_user_profile_item(&$variables)
Process variables for user-profile-item.tpl.php.
The $variables array contains the following arguments:
- $element
See also
File
- modules/user/user.pages.inc, line 247
- User page callback file for the user module.
Code
function template_preprocess_user_profile_item(&$variables) { $variables['title'] = $variables['element']['#title']; $variables['value'] = $variables['element']['#markup']; $variables['attributes'] = ''; if (isset($variables['element']['#attributes'])) { $variables['attributes'] = drupal_attributes($variables['element']['#attributes']); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.pages.inc/function/template_preprocess_user_profile_item/7.x