function google_cse_theme in Google Custom Search Engine 7.3
Same name and namespace in other branches
- 8.3 google_cse.module \google_cse_theme()
- 8 google_cse.module \google_cse_theme()
- 8.2 google_cse.module \google_cse_theme()
- 6 google_cse.module \google_cse_theme()
- 7 google_cse.module \google_cse_theme()
- 7.2 google_cse.module \google_cse_theme()
Implements hook_theme().
File
- ./
google_cse.module, line 146 - Display a Google Custom Search Engine (CSE) on your site.
Code
function google_cse_theme($existing, $type, $theme, $path) {
return array(
'google_cse_results' => array(
'variables' => array(
'form' => FALSE,
'path' => $path,
),
'file' => 'google_cse.theme.inc',
'template' => 'templates/google_cse_results',
),
// Shows a message when the search does not return any result.
'google_cse_search_noresults' => array(
'variables' => array(),
),
'google_cse_xml' => array(
'template' => 'templates/google_cse_export',
'variables' => array(
'node' => NULL,
),
),
);
}