summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/theme.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index e621c139c..43a33b3df 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;
}
}