function advanced_forum_preprocess_advanced_forum_active_poster in Advanced Forum 7.2
Same name and namespace in other branches
- 6.2 includes/theme.inc \advanced_forum_preprocess_advanced_forum_active_poster()
Preprocesses template variables for the active poster template.
File
- includes/
theme.inc, line 470 - Holds theme functions and template preprocesses. Other style related functions are in style.inc
Code
function advanced_forum_preprocess_advanced_forum_active_poster(&$variables) {
advanced_forum_add_template_suggestions("active_poster", $variables);
$variables['account_name'] = theme('username', array(
'account' => $variables['account'],
));
$variables['picture'] = theme('advanced_forum_user_picture', array(
'account' => $variables['account'],
));
$node = $variables['last_post'];
$variables['last_post_title'] = l($node->title, "node/{$node->nid}");
$variables['last_post_date'] = format_date($node->created);
}