diff --git a/includes/theme.inc b/includes/theme.inc index e621c139c83..43a33b3dfb8 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -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; } }