You are here

function panels_everywhere_should_override_theme in Panels Everywhere 6

2 calls to panels_everywhere_should_override_theme()
panels_everywhere_fallback_page in ./panels_everywhere.module
panels_everywhere_theme_registry_alter in ./panels_everywhere.module
Implementation of hook_theme_registry_alter()

File

./panels_everywhere.module, line 84
panels_everywhere.module

Code

function panels_everywhere_should_override_theme() {
  if (!variable_get('panels_everywhere_override_page_tpl', FALSE)) {
    return FALSE;
  }
  if (!variable_get('panels_everywhere_site_template_per_theme', FALSE)) {
    return TRUE;
  }
  global $theme;
  return variable_get('panels_everywhere_override_theme_' . $theme, FALSE);
}