From 7b38b291b43070e2190eccadb88521374b7aae4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 7 Dec 2007 10:14:03 +0000 Subject: #198440 by davideads: provide the user object to all templates --- includes/theme.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes') 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; } } -- cgit v1.2.3