Commit 7b38b291 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#198440 by davideads: provide the user object to all templates

parent cd8afc2b
......@@ -1641,6 +1641,8 @@ function template_preprocess(&$variables, $hook) {
$variables['is_front'] = drupal_is_front_page();
// Tell all templates by which kind of user they're viewed.
$variables['logged_in'] = ($user->uid > 0);
// Provide user object to all templates
$variables['user'] = $user;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment