forum_theme

forum_theme()

Implements hook_theme().

File

core/modules/forum/forum.module, line 86
Provides discussion forums.

Code

function forum_theme() {
  return array(
    'forums' => array(
      'variables' => array('forums' => array(), 'topics' => array(), 'topics_pager' => array(), 'parents' => NULL, 'term' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL, 'header' => array()),
    ),
    'forum_list' => array(
      'variables' => array('forums' => NULL, 'parents' => NULL, 'tid' => NULL),
    ),
    'forum_icon' => array(
      'variables' => array('new_posts' => NULL, 'num_posts' => 0, 'comment_mode' => 0, 'sticky' => 0, 'first_new' => FALSE),
    ),
    'forum_submitted' => array(
      'variables' => array('topic' => NULL),
    ),
  );
}
doc_Drupal
2016-10-29 09:17:20
Comments
Leave a Comment

Please login to continue.