You are here

function _gss_check in Google Site Search 6

Check if Google Site Search can run.

2 calls to _gss_check()
gss_search in ./gss.module
Implementation of hook_search().
gss_search_form_submit in ./gss.module
Submit handler.

File

./gss.module, line 248

Code

function _gss_check() {
  $gss_enabled = variable_get('gss_enabled', FALSE);
  if (!$gss_enabled) {
    return FALSE;
  }
  $gss_api_key = variable_get('gss_api_key', FALSE);
  if (!$gss_api_key) {
    variable_set('gss_enabled', 0);
    return FALSE;
  }
  return TRUE;
}