function mobile_switch_preprocess_html in Mobile Switch 7
Same name and namespace in other branches
- 7.2 mobile_switch.module \mobile_switch_preprocess_html()
Preprocess variables for html.tpl.php.
File
- ./
mobile_switch.module, line 192 - Simple theme switch for mobile devices, detected by browscap.
Code
function mobile_switch_preprocess_html(&$variables) {
if (variable_get('mobile_switch_mobile_theme', 'none') == 'none') {
return;
}
if (stristr($_GET['q'], 'admin')) {
drupal_add_css(drupal_get_path('module', 'mobile_switch') . '/css/mobile_switch.system.admin.css');
}
}