Return to Snippet

Revision: 13923
at May 13, 2009 01:52 by robksawyer


Initial Code
function mytheme_preprocess_search_results(&$variables) {
  $variables['search_results'] = '';
  foreach ($variables['results'] as $result) {
    $variables['search_results'] .= theme('search_result', $result, $variables['type']);
  }
  $variables['pager'] = theme('pager', NULL, 10, 0);
  // Provide alternate search results template.
  $variables['template_files'][] = 'search-results-'. $variables['type'];
}

Initial URL

                                

Initial Description

                                

Initial Title
theme search results

Initial Tags
drupal

Initial Language
PHP