forums.tpl.php

  1. 7.x drupal-7.x/modules/forum/forums.tpl.php
  2. 6.x drupal-6.x/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-7.x/modules/forum/forum.pages.inc
Page callback: Prints a forum listing.

File

drupal-7.x/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