function theme_finder_results in Finder 6
Same name in this branch
- 6 includes/finder.inc \theme_finder_results()
- 6 includes/finder.theme.inc \theme_finder_results()
Same name and namespace in other branches
- 7.2 includes/theme.inc \theme_finder_results()
- 7 includes/finder.theme.inc \theme_finder_results()
Theme the finder results wrapper.
Parameters
$variables['results']: Themed results list as returned from base handler module.
$variables['finder']: The finder object.
$variables['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.
$variables['pager']: Used to limit results per page.
$variables['params']: Attributes to pass through to theme_pager().
$variables['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.inc, line 183 - Theme functions for the finder module.
Code
function theme_finder_results($variables) {
$results = $variables['results'];
$finder = $variables['finder'];
$keywords = $variables['keywords'];
$pager = $variables['pager'];
$params = $variables['params'];
$form_state = $variables['form_state'];
$no_results = $variables['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;
}