Community Documentation

forum_theme

6 forum.module forum_theme()
7 forum.module forum_theme()
8 forum.module forum_theme()

Implementation of hook_theme()

File

modules/forum/forum.module, line 37
Enable threaded discussions about general topics.

Code

<?php
function forum_theme() {
  return array(
    'forums' => array(
      'template' => 'forums', 
      'arguments' => array('forums' => NULL, 'topics' => NULL, 'parents' => NULL, 'tid' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL),
    ), 
    'forum_list' => array(
      'template' => 'forum-list', 
      'arguments' => array('forums' => NULL, 'parents' => NULL, 'tid' => NULL),
    ), 
    'forum_topic_list' => array(
      'template' => 'forum-topic-list', 
      'arguments' => array('tid' => NULL, 'topics' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL),
    ), 
    'forum_icon' => array(
      'template' => 'forum-icon', 
      'arguments' => array('new_posts' => NULL, 'num_posts' => 0, 'comment_mode' => 0, 'sticky' => 0),
    ), 
    'forum_topic_navigation' => array(
      'template' => 'forum-topic-navigation', 
      'arguments' => array('node' => NULL),
    ), 
    'forum_submitted' => array(
      'template' => 'forum-submitted', 
      'arguments' => array('topic' => NULL),
    ),
  );
}
?>
Login or register to post comments