function admin_language_cron in Administration Language 7
Implements hook_cron().
File
- ./
admin_language.module, line 938 - Makes admin pages be displayed in the administrator's preferred language.
Code
function admin_language_cron() {
// Update the stored core admin paths.
// The paths are stored in a variable because path_get_admin_paths() and / or
// path_is_admin() need a higher bootstrap level than the hook the module uses
// to switch the language.
variable_set('admin_language_path_is_admin_paths', path_get_admin_paths());
}