blob: d1fa160c8a5ef12be002b26d7c1a0154b2250a19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
// $Id$
/**
* @file
* User page callbacks for the forum module.
*/
/**
* Menu callback; prints a forum listing.
*/
function forum_page($tid = 0) {
$topics = '';
$forum_per_page = variable_get('forum_per_page', 25);
$sortby = variable_get('forum_order', 1);
$forums = forum_get_forums($tid);
$parents = taxonomy_get_parents_all($tid);
if ($tid && !in_array($tid, variable_get('forum_containers', array()))) {
$topics = forum_get_topics($tid, $sortby, $forum_per_page);
}
return theme('forums', $forums, $topics, $parents, $tid, $sortby, $forum_per_page);
}
|