You are here

function theme_finder_results in Finder 6

Same name in this branch
  1. 6 includes/finder.inc \theme_finder_results()
  2. 6 includes/finder.theme.inc \theme_finder_results()
Same name and namespace in other branches
  1. 7.2 includes/theme.inc \theme_finder_results()
  2. 7 includes/finder.theme.inc \theme_finder_results()

Theme the finder results wrapper.

Parameters

$results: Themed results list as returned from base handler module.

$finder: The finder object.

$keywords: An array keyed by finder_element_id, where the values are any str/num/bool/null or an array of such values to be OR'd together. This is provided so themers can reformat the keywords and output them back to the user.

$pager: Used to limit results per page.

$params: Attributes to pass through to theme_pager().

$form_state: The Forms API form state array. There may be information in here useful in making decisions about output.

1 string reference to 'theme_finder_results'
finder_search_preprocess_finder_results in modules/finder_search/finder_search.module
Intervene before theme function.
1 theme call to theme_finder_results()
finder_results in ./finder.module
Create finder results output.

File

includes/finder.theme.inc, line 169
Theme functions for the finder module.

Code

function theme_finder_results($results, $finder, $keywords, $pager, $params, $form_state, $no_results) {
  $output = '';

  //$output .= '<h3 class="finder-results">'. t('Results') .'</h3>';
  $output .= '<div class="finder-results">';
  if ($results) {
    $output .= $results;
    if ($pager) {
      $output .= theme('pager', NULL, $pager, 0, $params);
    }
  }
  else {
    $output .= $no_results;
  }
  $output .= '</div>';
  return $output;
}