You are here

function finder_search_get_themed_results in Finder 7

Same name and namespace in other branches
  1. 6 modules/finder_search/finder_search.module \finder_search_get_themed_results()

Get themed version of search results.

Parameters

$results: An array of result objects.

Return value

Themed output from search module's hooks.

1 call to finder_search_get_themed_results()
theme_finder_search_results in modules/finder_search/finder_search.module
Theme search results for finder.

File

modules/finder_search/finder_search.module, line 125
The finder search module.

Code

function finder_search_get_themed_results($results) {
  $output = '';
  if (isset($results) && is_array($results) && count($results)) {
    if (module_hook($type, 'search_page')) {
      $output .= module_invoke($type, 'search_page', $results);
    }
    else {
      $output .= theme('search_results', $results, $type);
    }
  }
  return $output;
}