function notifications_process_language in Notifications 6.3
If language split mode enabled set global language or mark current language as done
We go through the language list in order and when done start again. Ideally this should run just once per cron run because there are multiple static variables out there that can be set just once.
Note that this function may switch global language.
Return value
$language Current language in case we've changed it
1 call to notifications_process_language()
- notifications_process_run in ./
notifications.cron.inc - Function to be called on cron by the main notifications_cron
File
- ./
notifications.cron.inc, line 78
Code
function notifications_process_language() {
global $language;
if (variable_get('notifications_language_split_mode', 0) && module_exists('i18ncron') && variable_get('language_count', 1) > 1) {
return $language;
}
}