function template_preprocess_profile_wrapper

Process variables for profile-wrapper.tpl.php.

The $variables array contains the following arguments:

  • $content

See also

profile-wrapper.tpl.php

File

modules/profile/profile.module, line 591

Code

function template_preprocess_profile_wrapper(&$variables) {
    $variables['current_field'] = '';
    if ($field = arg(1)) {
        $variables['current_field'] = $field;
        $variables['theme_hook_suggestions'][] = 'profile_wrapper__' . $field;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.