function forum_theme
Same name in other branches
- 9 core/modules/forum/forum.module \forum_theme()
- 8.9.x core/modules/forum/forum.module \forum_theme()
- 10 core/modules/forum/forum.module \forum_theme()
- 11.x core/modules/forum/forum.module \forum_theme()
Implements hook_theme().
File
-
modules/
forum/ forum.module, line 57
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',
),
);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.