I am trying to create a custom page that display my resuslts which I receive after I search for a post.
I am having no luck, I am a total begginer in drupal 7, I googled and looked around here but I did not quite understood what I have to do.
What I tried:
function **themename**_preprocess_search_results(&$variables) {
$variables['search_results'] = '';
if (!empty($variables['module'])) {
$variables['module'] = check_plain($variables['module']);
}
foreach ($variables['results'] as $result) {
$variables['search_results'] .= theme('search_result', array('result' => $result, 'module' => $variables['module']));
}
$variables['pager'] = theme('pager', array('tags' => NULL));
$variables['theme_hook_suggestions'][] = 'search_results__' . $variables['module'];
}
- Creating a search-results.tpl.php ( did not work )
- The only module I have installed for search is the default search module.
Nothing seems to work. Thanks in advance