You are here

function forum_theme in Drupal 7

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

Implements hook_theme().

File

modules/forum/forum.module, line 57
Provides discussion forums.

Code

function forum_theme() {
  return array(
    'forums' => array(
      'template' => 'forums',
      'variables' => array(
        'forums' => NULL,
        'topics' => NULL,
        'parents' => NULL,
        'tid' => NULL,
        'sortby' => NULL,
        'forum_per_page' => NULL,
      ),
    ),
    'forum_list' => array(
      'template' => 'forum-list',
      'variables' => array(
        'forums' => NULL,
        'parents' => NULL,
        'tid' => NULL,
      ),
    ),
    'forum_topic_list' => array(
      'template' => 'forum-topic-list',
      'variables' => array(
        'tid' => NULL,
        'topics' => NULL,
        'sortby' => NULL,
        'forum_per_page' => NULL,
      ),
    ),
    'forum_icon' => array(
      'template' => 'forum-icon',
      'variables' => array(
        'new_posts' => NULL,
        'num_posts' => 0,
        'comment_mode' => 0,
        'sticky' => 0,
        'first_new' => FALSE,
      ),
    ),
    'forum_submitted' => array(
      'template' => 'forum-submitted',
      'variables' => array(
        'topic' => NULL,
      ),
    ),
    'forum_form' => array(
      'render element' => 'form',
      'file' => 'forum.admin.inc',
    ),
  );
}