function textsize_admin_theme_check in Text Size 7
Returns TRUE if we're on the admin theme AND we want it disabled.
Return value
bool
3 calls to textsize_admin_theme_check()
- textsize_js_alter in ./
textsize.module - Implement hook_js_alter().
- textsize_print_html in ./
textsize.module - Print HTMl code in the head.
- textsize_print_js_css in ./
textsize.module - Print Javascript and CSS in the head.
File
- ./
textsize.module, line 310 - Display a text size changer on the page for a better web accessibility.
Code
function textsize_admin_theme_check() {
if (variable_get('textsize_disable_on_admin_theme', 0)) {
global $theme;
$admin_theme = variable_get('admin_theme', 0);
return $theme == $admin_theme;
}
return FALSE;
}