search-results.tpl.php

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  1. cis7 modules/search/search-results.tpl.php
  2. cle7 modules/search/search-results.tpl.php
  3. ecd7 modules/search/search-results.tpl.php
  4. elmsmedia7 modules/search/search-results.tpl.php
  5. harmony7 modules/search/search-results.tpl.php
  6. icor7 modules/search/search-results.tpl.php
  7. meedjum_blog7 modules/search/search-results.tpl.php
  8. mooc7 modules/search/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 dependent 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
  • $module: The machine-readable name of the module (tab) being searched, such as "node" or "user".

See also

template_preprocess_search_results()

12 string references to the theme hook from search-results.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.

ctools_search_result_content_type_render in sites/all/modules/ulmus/ctools/plugins/content_types/search/search_result.inc
Render the custom content type.
ds_build_shared_page_variables in sites/all/modules/ulmus/ds/modules/ds_search/ds_search.module
Build shared page variables.
ds_search_apachesolr_search_page_alter in sites/all/modules/ulmus/ds/modules/ds_search/ds_search.module
Implements hook_apachesolr_search_page_alter(&$build, $search_page).
ds_search_search_page in sites/all/modules/ulmus/ds/modules/ds_search/ds_search.module
Implements hook_search_page().
search_data in modules/search/search.module
Performs a search by calling hook_search_execute().

... See full list

File

modules/search/search-results.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  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 dependent 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. * - $module: The machine-readable name of the module (tab) being searched, such
  17. * as "node" or "user".
  18. *
  19. *
  20. * @see template_preprocess_search_results()
  21. *
  22. * @ingroup themeable
  23. */
  24. ?>
  25. <?php if ($search_results): ?>
  26. <h2><?php print t('Search results');?></h2>
  27. <ol class="search-results <?php print $module; ?>-results">
  28. <?php print $search_results; ?>
  29. </ol>
  30. <?php print $pager; ?>
  31. <?php else : ?>
  32. <h2><?php print t('Your search yielded no results');?></h2>
  33. <?php print search_help('search#noresults', drupal_help_arg()); ?>
  34. <?php endif; ?>

Related topics

Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.