Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 55965

Use it for question about the user entity. Don't use it for a generic question about, for example, what users can do on a site.

1 vote
3 answers
502 views

How do I get the user ID from the $user_profile variable?

How can I get the user ID and load the user with user_load() using the $user_profile variable in the user-profile.tpl.php template file?
Splinteer's user avatar
  • 133
1 vote

How do I get the user ID from the $user_profile variable?

Using the following code in a module will make the user ID available to the user-profile.tpl.php template as $user_id. function mymodule_preprocess_user_profile(&$variables) { $account = $variables[ …
Splinteer's user avatar
  • 133
1 vote
1 answer
446 views

Edit user profile template with module

How can I edit the user profile template in Drupal 7? I've created a module called sporthron in my project. sporthron.module contains : /** * Implements hook_theme(). */ function sporthron_theme …
Splinteer's user avatar
  • 133