Search Results
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 |
Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.
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?
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[ …
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. …