You are here

function advanced_forum_preprocess_advanced_forum_active_poster in Advanced Forum 6.2

Same name and namespace in other branches
  1. 7.2 includes/theme.inc \advanced_forum_preprocess_advanced_forum_active_poster()

Preprocesses template variables for the active poster template.

File

includes/theme.inc, line 432
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['template_files']);
  $variables['account_name'] = theme('username', $variables['account']);
  $variables['picture'] = theme('advanced_forum_user_picture', $variables['account']);
  $node = $variables['last_post'];
  $variables['last_post_title'] = l($node->title, "node/{$node->nid}");
  $variables['last_post_date'] = format_date($node->created);
}