You are here

function gss_search in Google Site Search 6

Implementation of hook_search().

File

./gss.module, line 209

Code

function gss_search($op = 'search', $keys = NULL) {
  $check = _gss_check();
  if ($check) {
    switch ($op) {
      case 'name':
        $gss_results_tab = variable_get('gss_results_tab', FALSE) ? variable_get('gss_results_tab', '') : 'Google Search';
        return $gss_results_tab;
        break;
      case 'search':
        $page = isset($_GET['page']) ? $_GET['page'] : 0;
        return gss_search_results($keys);
        break;
    }
  }
}