function rich_snippets_theme_registry_alter in Rich Snippets 7
Implements hook_theme_registry_alter().
Uses our custom search templates in favor of the core Search module's templates.
File
- ./
rich_snippets.module, line 78 - Overrides the standard search results templates and CSS to display results similar to major search engines.
Code
function rich_snippets_theme_registry_alter(&$theme_registry) {
$path = drupal_get_path('module', 'rich_snippets');
$theme_registry['search_result']['path'] = $path;
$theme_registry['search_result']['theme path'] = $path;
$theme_registry['search_result']['template'] = 'search-result';
$theme_registry['search_results']['path'] = $path;
$theme_registry['search_results']['theme path'] = $path;
$theme_registry['search_results']['template'] = 'search-results';
}