You are here

function themekey_is_ajax_theme_safe in ThemeKey 7.3

Checks if a theme is safe according to current configuration. See themekey_ajax_settings_form().

Parameters

$theme:

Return value

bool

1 call to themekey_is_ajax_theme_safe()
themekey_ajax_base_page_theme in ./themekey.module
Wrapper for ajax_base_page_theme() that optionally skips the token check.

File

./themekey.module, line 532
ThemeKey is designed as a generic theme-switching module.

Code

function themekey_is_ajax_theme_safe($theme) {
  return in_array($theme, variable_get('themekey_ajax_themes', array())) || variable_get('themekey_consider_default_theme_safe', 1) && $theme === variable_get('theme_default', 'bartik');
}