Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Sep 2011 at 20:12 UTC
Updated:
29 Jul 2014 at 19:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhodgdonThanks! You are right, $user is the global variable representing the logged-in user. The available variables section should be referring to $account to make it clear it is not the global $user.
Looks like a good issue for a novice docs contributor...
Comment #2
cashwilliams commentedpatch.
Seems strange though, that we call
render($user_profile)rather thanrender($account_profile).Comment #3
jhodgdon$user is a Drupal-wide global variable for the logged-in user. $user_profile is a variable set up by the theme preprocessing functions.
Anyway, the patch looks good, thanks! (d7/8)
Comment #4
dries commentedCommitted to 7.x and 8.x. Thanks!