search-results.tpl.php

  1. 7.x drupal-7.x/modules/search/search-results.tpl.php
  2. 6.x drupal-6.x/modules/search/search-results.tpl.php

search-results.tpl.php Default theme implementation for displaying search results.

This template collects each invocation of theme_search_result(). This and the child template are dependant to one another sharing the markup for definition lists.

Note that modules may implement their own search type and theme function completely bypassing this template.

Available variables:

  • $search_results: All results as it is rendered through search-result.tpl.php
  • $type: The type of search, e.g., "node" or "user".

See also

template_preprocess_search_results()

1 theme call to search-results.tpl.php
search_data in drupal-6.x/modules/search/search.module
Perform a standard search on the given keys, and return the formatted results.

File

drupal-6.x/modules/search/search-results.tpl.php
View source
  1. <?php
  2. /**
  3. * @file search-results.tpl.php
  4. * Default theme implementation for displaying search results.
  5. *
  6. * This template collects each invocation of theme_search_result(). This and
  7. * the child template are dependant to one another sharing the markup for
  8. * definition lists.
  9. *
  10. * Note that modules may implement their own search type and theme function
  11. * completely bypassing this template.
  12. *
  13. * Available variables:
  14. * - $search_results: All results as it is rendered through
  15. * search-result.tpl.php
  16. * - $type: The type of search, e.g., "node" or "user".
  17. *
  18. *
  19. * @see template_preprocess_search_results()
  20. */
  21. ?>
  22. <dl class="search-results <?php print $type; ?>-results">
  23. <?php print $search_results; ?>
  24. </dl>
  25. <?php print $pager; ?>