You are here

function google_cse_language in Google Custom Search Engine 7.2

Same name and namespace in other branches
  1. 8.3 google_cse.module \google_cse_language()
  2. 8.2 google_cse.module \google_cse_language()
  3. 7 google_cse.module \google_cse_language()

Get the relevant language to use for the search.

Return value

string The language.

1 call to google_cse_language()
google_cse_init in ./google_cse.module
Implements hook_init().

File

./google_cse.module, line 242
Display a Google Custom Search Engine (CSE) on your site.

Code

function google_cse_language() {
  global $language;
  return variable_get('google_cse_locale_hl', '') ? $language->language : variable_get('google_cse_hl', '');
}