forums.tpl.php

  1. 7.x drupal/modules/forum/forums.tpl.php
  2. 6.x drupal/modules/forum/forums.tpl.php

Displays a forum.

May contain forum containers as well as forum topics.

Available variables:

  • $forums: The forums to display (as processed by forum-list.tpl.php).
  • $topics: The topics to display (as processed by forum-topic-list.tpl.php).
  • $forums_defined: A flag to indicate that the forums are configured.

See also

template_preprocess_forums()

1 theme call to forums.tpl.php
forum_page in drupal/modules/forum/forum.pages.inc
Page callback: Prints a forum listing.
13 string references to the theme hook from forums.tpl.php

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

forum_enable in drupal/modules/forum/forum.install
Implements hook_enable().
forum_page in drupal/modules/forum/forum.pages.inc
Page callback: Prints a forum listing.
forum_rdf_mapping in drupal/modules/forum/forum.module
Implements hook_rdf_mapping().
forum_theme in drupal/modules/forum/forum.module
Implements hook_theme().
hook_theme in drupal/modules/system/system.api.php
Register a module (or theme's) theme implementations.

... See full list

File

drupal/modules/forum/forums.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Displays a forum.
  5. *
  6. * May contain forum containers as well as forum topics.
  7. *
  8. * Available variables:
  9. * - $forums: The forums to display (as processed by forum-list.tpl.php).
  10. * - $topics: The topics to display (as processed by forum-topic-list.tpl.php).
  11. * - $forums_defined: A flag to indicate that the forums are configured.
  12. *
  13. * @see template_preprocess_forums()
  14. *
  15. * @ingroup themeable
  16. */
  17. ?>
  18. <?php if ($forums_defined): ?>
  19. <div id="forum">
  20. <?php print $forums; ?>
  21. <?php print $topics; ?>
  22. </div>
  23. <?php endif; ?>

Related topics