template_preprocess_user_profile_category

function template_preprocess_user_profile_category

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

File

modules/user/user.pages.inc, line 264
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']);
  }
}

© 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_category/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部