Code coverage for /20080809/modules/forum/forum.pages.inc

Line #Times calledCode
1
<?php
2
// $Id: forum.pages.inc,v 1.2 2007/07/26 06:48:03 dries Exp $
3
4
/**
5
 * @file
6
 * User page callbacks for the forum module.
7
 */
8
9
/**
10
 * Menu callback; prints a forum listing.
11
 */
1212
function forum_page($tid = 0) {
1312
  $topics = '';
1412
  $forum_per_page = variable_get('forum_per_page', 25);
1512
  $sortby = variable_get('forum_order', 1);
16
1712
  $forums = forum_get_forums($tid);
1812
  $parents = taxonomy_get_parents_all($tid);
1912
  if ($tid && !in_array($tid, variable_get('forum_containers', array())))
{
208
    $topics = forum_get_topics($tid, $sortby, $forum_per_page);
218
  }
22
2312
  return theme('forums', $forums, $topics, $parents, $tid, $sortby,
$forum_per_page);
240
}
2512