function _language_selection_page_check_language_count in Language Selection Page 6
Same name and namespace in other branches
- 7 includes/language_selection_page.helpers.inc \_language_selection_page_check_language_count()
Return an array with the real language count from DB and the one from vars.
Return value
array
3 calls to _language_selection_page_check_language_count()
- language_selection_page_admin in ./
language_selection_page.admin.inc - The admin page form.
- language_selection_page_init in ./
language_selection_page.module - Implements hook_init().
- language_selection_page_requirements in ./
language_selection_page.install
File
- includes/
language_selection_page.helpers.inc, line 94 - This file contains all the custom functions needed for the module.
Code
function _language_selection_page_check_language_count() {
// We cannot rely on the variables from Features or system.
$language_count = language_list('enabled');
return array(
'db' => count($language_count[1]),
'vars' => variable_get('language_count', 1),
);
}