/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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']; }