function template_preprocess_user_profile_item

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

The $variables array contains the following arguments:

  • $element

See also

user-profile-item.tpl.php

File

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

Code

function template_preprocess_user_profile_item(&$variables) {
    $variables['title'] = $variables['element']['#title'];
    $variables['value'] = $variables['element']['#markup'];
    $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.