function forum_theme

Same name in other branches
  1. 7.x modules/forum/forum.module \forum_theme()
  2. 9 core/modules/forum/forum.module \forum_theme()
  3. 8.9.x core/modules/forum/forum.module \forum_theme()
  4. 10 core/modules/forum/forum.module \forum_theme()

Implements hook_theme().

File

core/modules/forum/forum.module, line 98

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,
            ],
        ],
        'forum_topic' => [
            'variables' => [
                'title_link' => NULL,
                'submitted' => NULL,
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.