Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
theme system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2007 at 16:21 UTC
Updated:
21 Dec 2007 at 10:21 UTC
$user is utilized in template_preprocess() to provide $variables['logged_in'].
Why not pass the entire user? As a theme developer, I find I have need for that information often enough that it probably should just come along by default and be provided to all theme functions.
| Comment | File | Size | Author |
|---|---|---|---|
| add_user_to_preprocess.patch | 288 bytes | davideads |
Comments
Comment #1
moshe weitzman commentedI guess this saves themers from figuring out relative mumbo jumbo like $GLOBALS['user']
Comment #2
gábor hojtsyOK, committed. Please provide unified diffs in the future. (diff -u)
Comment #3
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.