You are here

function phptemplate_forum_display in Advanced Forum 5

Implementation of theme_forum_display().

File

./advanced_forum.module, line 210
Enables the look and feel of other popular forum software.

Code

function phptemplate_forum_display($forums, $topics, $parents, $tid, $sortby, $forum_per_page) {

  // Create a $variables array from the parameters
  $variables['forums'] = $forums;
  $variables['topics'] = $topics;
  $variables['parents'] = $parents;
  $variables['tid'] = $tid;
  $variables['sortby'] = $sortby;
  $variables['forum_per_page'] = $forum_per_page;

  // Pass the parameters into our preprocess function
  advanced_forum_call_preprocess('forums', $variables);

  // Set the template file
  $forum_style = advanced_forum_get_current_style();
  return _phptemplate_callback('advf_forums', $variables, array(
    "{$forum_style}/advf-forums",
  ));
}