function forum_theme in Drupal 8
Same name and namespace in other branches
- 6 modules/forum/forum.module \forum_theme()
- 7 modules/forum/forum.module \forum_theme()
- 9 core/modules/forum/forum.module \forum_theme()
Implements hook_theme().
File
- core/
modules/ forum/ forum.module, line 87 - Provides discussion forums.
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,
],
],
];
}