template_preprocess_user_profile_item
modules/user/user.pages.inc, строка 199
- Версии
- 6
template_preprocess_user_profile_item(&$variables)
Process variables for user-profile-item.tpl.php.
The $variables
array contains the following arguments:
$element
See also
user-profile-item.tpl.php
Код
<?php
function template_preprocess_user_profile_item(&$variables) {
$variables['title'] = $variables['element']['#title'];
$variables['value'] = $variables['element']['#value'];
$variables['attributes'] = '';
if (isset($variables['element']['#attributes'])) {
$variables['attributes'] = drupal_attributes($variables['element']['#attributes']);
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии