views-view-grouping.tpl.php

  1. cis7 sites/all/modules/ulmus/views/theme/views-view-grouping.tpl.php
  2. cle7 sites/all/modules/ulmus/views/theme/views-view-grouping.tpl.php
  3. ecd7 sites/all/modules/ulmus/views/theme/views-view-grouping.tpl.php
  4. elmsmedia7 sites/all/modules/ulmus/views/theme/views-view-grouping.tpl.php
  5. harmony7 sites/all/modules/ulmus/views/theme/views-view-grouping.tpl.php
  6. icor7 sites/all/modules/ulmus/views/theme/views-view-grouping.tpl.php
  7. meedjum_blog7 sites/all/modules/ulmus/views/theme/views-view-grouping.tpl.php
  8. mooc7 sites/all/modules/ulmus/views/theme/views-view-grouping.tpl.php

This template is used to print a single grouping in a view.

It is not actually used in default Views, as this is registered as a theme function which has better performance. For single overrides, the template is perfectly okay.

Variables available:

  • $view: The view object
  • $grouping: The grouping instruction.
  • $grouping_level: Integer indicating the hierarchical level of the grouping.
  • $rows: The rows contained in this grouping.
  • $title: The title of this grouping.
  • $content: The processed content output that will normally be used.
1 theme call to views-view-grouping.tpl.php
views_plugin_style::render_grouping_sets in sites/all/modules/ulmus/views/plugins/views_plugin_style.inc
Render the grouping sets.
3 string references to the theme hook from views-view-grouping.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.

views_plugin_style::render_grouping_sets in sites/all/modules/ulmus/views/plugins/views_plugin_style.inc
Render the grouping sets.
views_theme in sites/all/modules/ulmus/views/views.module
Implement hook_theme(). Register views theming functions.
views_theme in sites/all/modules/ulmus/views/views.module
Implement hook_theme(). Register views theming functions.

File

sites/all/modules/ulmus/views/theme/views-view-grouping.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * This template is used to print a single grouping in a view.
  5. *
  6. * It is not actually used in default Views, as this is registered as a theme
  7. * function which has better performance. For single overrides, the template is
  8. * perfectly okay.
  9. *
  10. * Variables available:
  11. * - $view: The view object
  12. * - $grouping: The grouping instruction.
  13. * - $grouping_level: Integer indicating the hierarchical level of the grouping.
  14. * - $rows: The rows contained in this grouping.
  15. * - $title: The title of this grouping.
  16. * - $content: The processed content output that will normally be used.
  17. */
  18. ?>
  19. <div class="view-grouping">
  20. <div class="view-grouping-header"><?php print $title; ?></div>
  21. <div class="view-grouping-content">
  22. <?php print $content; ?>
  23. </div>
  24. </div>