You are here

function google_search in Google Custom Search Engine 6

Implementation of hook_search().

File

./google.module, line 11
Integrates Google Custom Search Engine with the Drupal core search API.

Code

function google_search($op = 'search', $keys = NULL) {
  if (user_access('search Google CSE')) {
    switch ($op) {
      case 'name':
        return google_cse_results_tab();
      case 'search':
        google_cse_results_set_title();
        return array(
          0,
        );
    }
  }
}