template_preprocess_profile_wrapper
modules/profile/profile.module, строка 534
- Версии
- 6
template_preprocess_profile_wrapper(&$variables)
Process variables for profile-wrapper.tpl.php.
The $variables
array contains the following arguments:
$content
See also
profile-wrapper.tpl.php
Код
<?php
function template_preprocess_profile_wrapper(&$variables) {
$variables['current_field'] = '';
if ($field = arg(1)) {
$variables['current_field'] = $field;
// Supply an alternate template suggestion based on the browsable field.
$variables['template_files'][] = 'profile-wrapper-'. $field;
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии