function theme_ds_search_page in Display Suite 7
Same name and namespace in other branches
- 7.2 modules/ds_search/ds_search.module \theme_ds_search_page()
Search page theming.
1 theme call to theme_ds_search_page()
- ds_search_search_page in modules/
ds_search/ ds_search.module - Implements hook_search_page().
File
- modules/
ds_search/ ds_search.module, line 55 - Display Suite search.
Code
function theme_ds_search_page($build) {
// Check on empty search results.
if (empty($build['search_results'])) {
// Alter the title and extra variables.
if (!empty($build['search_title'])) {
$build['search_title']['#markup'] = '<h2>' . t('Your search yielded no results') . '</h2>';
unset($build['search_extra']);
}
$build['search_empty'] = array(
'#markup' => t('<ul><li>Check if your spelling is correct.</li><li>Remove quotes around phrases to search for each word individually. <em>bike shed</em> will often show more results than <em>"bike shed"</em>.</li><li>Consider loosening your query with <em>OR</em>. <em>bike OR shed</em> will often show more results than <em>bike shed</em>.</li></ul>'),
);
}
return $build;
}