function phptemplate_forum_icon in Advanced Forum 5
Implementation of theme_forum_icon
File
- ./
advanced_forum.module, line 404 - Enables the look and feel of other popular forum software.
Code
function phptemplate_forum_icon($new_posts, $num_posts = 0, $comment_mode = 0, $sticky = 0, $topic_id = 0) {
// Create a $variables array from the parameters
$variables['new_posts'] = $new_posts;
$variables['num_posts'] = $num_posts;
$variables['comment_mode'] = $comment_mode;
$variables['sticky'] = $sticky;
$variables['topic_id'] = $topic_id;
// Pass the parameters into our preprocess function
advanced_forum_call_preprocess('forum_icon', $variables);
// Set the template file
$forum_style = advanced_forum_get_current_style();
return _phptemplate_callback("advf_forum_icon", $variables, array(
"{$forum_style}/advf-forum-icon",
));
}