You are here

function pagestyle_admin_theme_check in Page Style 7

Returns TRUE if we're on the admin theme AND we want it disabled.

Return value

bool

3 calls to pagestyle_admin_theme_check()
pagestyle_js_alter in ./pagestyle.module
Implement hook_js_alter().
pagestyle_print_html in ./pagestyle.module
Print HTMl code in the head
pagestyle_print_js_css in ./pagestyle.module
Print Javascript and CSS in the head.

File

./pagestyle.module, line 384
Display a style changer on the page and in the browser menu for a better web accessibility.

Code

function pagestyle_admin_theme_check() {
  if (variable_get('pagestyle_disable_on_admin_theme', 0)) {
    global $theme;
    $admin_theme = variable_get('admin_theme', 0);
    return $theme == $admin_theme;
  }
  return FALSE;
}