1 user.theme.inc | template_preprocess_user_simplified_page(&$variables) |
Preprocess variables for user-simplified-page.tpl.php.
Parameters
array $variables: An associative array containing:
- form: The form structure to be rendered.
- links: A render array containing the links to other related forms.
See also
File
- core/
modules/ user/ user.theme.inc, line 400 - Theme functions for the User module.
Code
function template_preprocess_user_simplified_page(&$variables) {
$page_title = backdrop_get_title();
$variables['logo_image'] = '';
if ($logo = backdrop_get_logo()) {
$variables['logo_image'] = theme('image', array(
'path' => $logo,
'alt' => $page_title,
));
}
$variables['site_name'] = config_get_translated('system.core', 'site_name');
$variables['front_page'] = url();
$variables['page_title'] = $page_title;
$variables['messages'] = theme('status_messages');
backdrop_add_css(backdrop_get_path('module', 'user') . '/css/user-simplified-page.css');
}