function forum_theme
Same name in other branches
- 7.x 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
-
core/
modules/ forum/ forum.module, line 87
Code
function forum_theme() {
return [
'forums' => [
'variables' => [
'forums' => [],
'topics' => [],
'topics_pager' => [],
'parents' => NULL,
'term' => NULL,
'sortby' => NULL,
'forum_per_page' => NULL,
'header' => [],
],
],
'forum_list' => [
'variables' => [
'forums' => NULL,
'parents' => NULL,
'tid' => NULL,
],
],
'forum_icon' => [
'variables' => [
'new_posts' => NULL,
'num_posts' => 0,
'comment_mode' => 0,
'sticky' => 0,
'first_new' => FALSE,
],
],
'forum_submitted' => [
'variables' => [
'topic' => NULL,
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.