function user_badges_preprocess_author_pane in Author Pane 6
Same name and namespace in other branches
- 5 modules/user_badges.author-pane.inc \user_badges_preprocess_author_pane()
- 6.2 modules/user_badges.author-pane.inc \user_badges_preprocess_author_pane()
- 7.2 modules/user_badges.author-pane.inc \user_badges_preprocess_author_pane()
Implementation of hook_preprocess_author_pane().
File
- modules/
user_badges.author-pane.inc, line 11 - Provides a preprocess function on behalf of the user badges module.
Code
function user_badges_preprocess_author_pane(&$variables) {
$account_id = $variables['account']->uid;
if ($account_id != 0) {
$variables['user_badges'] = user_badges_for_uid($account_id);
}
}