function _language_selection_page_detect_lang_from_cookie in Language Selection Page 6
Custom function who detect the language from a cookie.
Return value
string
1 call to _language_selection_page_detect_lang_from_cookie()
- language_selection_page_init in ./
language_selection_page.module - Implements hook_init().
File
- includes/
language_selection_page.helpers.inc, line 64 - This file contains all the custom functions needed for the module.
Code
function _language_selection_page_detect_lang_from_cookie() {
return _language_selection_page_validate_language($_COOKIE[LANGUAGE_SELECTION_PAGE_LANGUAGE_COOKIE_KEY]);
}