function advanced_forum_preprocess_author_pane in Advanced Forum 5
Same name and namespace in other branches
- 6.2 includes/theme.inc \advanced_forum_preprocess_author_pane()
- 6 advanced_forum.module \advanced_forum_preprocess_author_pane()
- 7.2 includes/theme.inc \advanced_forum_preprocess_author_pane()
Preprocesses template variables for the author pane.
File
- ./
advanced_forum.module, line 426 - Enables the look and feel of other popular forum software.
Code
function advanced_forum_preprocess_author_pane(&$variables) {
// Author pane is used in various places. The only way to be sure to only
// hit it when we are using it is to check the template suggestion.
if (strpos($variables['template_suggestion'], 'advf-author-pane')) {
// Attempt to override the user picture fetched by Author Pane from core.
$sized_picture = theme('advanced_forum_user_picture', $variables['account']);
if (!empty($sized_picture)) {
$variables['picture'] = $sized_picture;
}
}
}