function google_cse_search_execute in Google Custom Search Engine 7
Same name and namespace in other branches
- 7.3 google_cse.module \google_cse_search_execute()
- 7.2 google_cse.module \google_cse_search_execute()
Implements hook_search_execute().
File
- ./
google_cse.module, line 30 - Display a Google Custom Search Engine (CSE) on your site.
Code
function google_cse_search_execute($keys = NULL, $conditions = NULL) {
if ($keys && !isset($_GET['query'])) {
drupal_goto('search/google/' . $keys, array(
'query' => google_cse_build_query($keys),
), 301);
}
}