diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-07 10:14:03 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-07 10:14:03 +0000 |
commit | 7b38b291b43070e2190eccadb88521374b7aae4c (patch) | |
tree | 7083d6d1630dff8ef79a141d8c36054b9de7c772 /includes | |
parent | cd8afc2be1dc62bcad0d691f132aaf37a863237e (diff) | |
download | brdo-7b38b291b43070e2190eccadb88521374b7aae4c.tar.gz brdo-7b38b291b43070e2190eccadb88521374b7aae4c.tar.bz2 |
#198440 by davideads: provide the user object to all templates
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 2 |
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; } } |