function template_preprocess_user_profile_category

Process variables for user-profile-category.tpl.php.

The $variables array contains the following arguments:

  • $element

See also

user-profile-category.tpl.php

File

modules/user/user.pages.inc, line 370

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']);
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.