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']);
  }
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему