function google_appliance_theme in Google Search Appliance 6.2
Same name and namespace in other branches
- 8 google_appliance.module \google_appliance_theme()
- 7 theme/google_appliance.theme.inc \google_appliance_theme()
Implementation of hook_theme().
File
- ./
google_appliance.module, line 318 - Google Search Appliance (GSA) / Google Mini integration
Code
function google_appliance_theme() {
$registry = array(
'google_appliance_add_meta_tags' => array(
'arguments' => array(
'results' => array(),
),
),
'google_appliance_search_result_array' => array(
'arguments' => array(
'result' => array(),
),
),
'google_appliance_search_view' => array(
'arguments' => array(
'keys' => array(),
'collection' => array(),
),
),
'google_appliance_search_form' => array(
'arguments' => array(
'form' => array(),
),
),
'google_appliance_keymatches' => array(
'arguments' => array(
'keymatches' => NULL,
),
),
'google_appliance_synonyms' => array(
'arguments' => array(
'synonyms' => NULL,
),
),
'google_appliance_cached_link' => array(
'arguments' => array(
'link' => NULL,
'cid' => NULL,
),
),
'google_appliance_theme_form' => array(
'arguments' => array(
'form' => NULL,
),
'template' => 'google-appliance-theme-form',
),
);
// If the search.module is disabled, replicate theme_search_result(s).
$search_module_disabled = !array_key_exists('search', module_list());
if ($search_module_disabled) {
$registry += array(
'search_result' => array(
'path' => 'modules/search',
'file' => 'search.pages.inc',
'arguments' => array(
'result' => NULL,
'type' => NULL,
),
'template' => 'search-result',
),
'search_results' => array(
'path' => 'modules/search',
'file' => 'search.pages.inc',
'arguments' => array(
'results' => NULL,
'type' => NULL,
),
'template' => 'search-results',
),
);
}
return $registry;
}