template_preprocess_user_profile_category

Versions
6 – 7
template_preprocess_user_profile_category(&$variables)

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

The $variables array contains the following arguments:

  • $element

See also

user-profile-category.tpl.php

Code

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

<?php
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']);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.