function visually_impaired_module_custom_theme in Visually Impaired Support (module) 7
Implements hook_custom_theme().
File
- ./
visually_impaired_module.module, line 202 - Provides version for visually impaired people.
Code
function visually_impaired_module_custom_theme() {
if (arg(0) == 'admin') {
return variable_get('admin_theme');
}
elseif (isset($_COOKIE['visually_impaired']) && $_COOKIE['visually_impaired'] == 'on') {
return variable_get('visually_impaired_module_selection', 'default');
}
}