function template_preprocess_user_profile_category
7.x user.pages.inc | template_preprocess_user_profile_category(&$variables) |
6.x user.pages.inc | template_preprocess_user_profile_category(&$variables) |
Process variables for user-profile-category.tpl.php.
The $variables array contains the following arguments:
- $element
See also
File
- drupal-6.x/
modules/ user/ user.pages.inc, line 220 - User page callback file for the user module.
Code
function template_preprocess_user_profile_category(&$variables) {
$variables['title'] = check_plain($variables['element']['#title']);
$variables['profile_items'] = $variables['element']['#children'];
$variables['attributes'] = '';
if (isset($variables['element']['#attributes'])) {
$variables['attributes'] = drupal_attributes($variables['element']['#attributes']);
}
}