You are here

function forum_theme in Drupal 6

Same name and namespace in other branches
  1. 8 core/modules/forum/forum.module \forum_theme()
  2. 7 modules/forum/forum.module \forum_theme()
  3. 9 core/modules/forum/forum.module \forum_theme()

Implementation of hook_theme()

File

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

Code

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,
      ),
    ),
  );
}