| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file 5 * User page callbacks for the forum module. 6 */ 7 8 /** 9 * Menu callback; prints a forum listing. 10 */ 11 function forum_page($tid = 0) { 12 if (!is_numeric($tid)) { 13 return MENU_NOT_FOUND; 14 } 15 $tid = (int)$tid; 16 17 $topics = ''; 18 $forum_per_page = variable_get('forum_per_page', 25); 19 $sortby = variable_get('forum_order', 1); 20 21 $forums = forum_get_forums($tid); 22 $parents = taxonomy_get_parents_all($tid); 23 if ($tid && !in_array($tid, variable_get('forum_containers', array()))) { 24 $topics = forum_get_topics($tid, $sortby, $forum_per_page); 25 } 26 27 return theme('forums', $forums, $topics, $parents, $tid, $sortby, $forum_per_page); 28 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |