function language_selection_page_check_language_count in Language Selection Page 7.2
Return an array with the real language count from DB and the one from vars.
Return value
array
1 call to language_selection_page_check_language_count()
- language_selection_page_requirements in ./
language_selection_page.install - Implements hook_requirements().
File
- includes/
language_selection_page.helpers.inc, line 12 - 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),
);
}