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

6.x
Gábor Hojtsy 2007-12-07 10:14:03 +00:00
parent cd8afc2be1
commit 7b38b291b4
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}