source: sipes/cord/modules/forum/forum.pages.inc @ 8a8efa8

stableversion-3.0
Last change on this file since 8a8efa8 was b354002, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio del cord

  • Propiedad mode establecida a 100755
File size: 662 octetos
Línea 
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 */
11function 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}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.