Skip navigation
Help

forums.tpl.php

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

Default theme implementation to display a forum which may contain forum containers as well as forum topics.

Variables available:

  • $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()

theme_forums()

1 theme call to forums.tpl.php

File

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