function ctools_theme_ctools_access_check
Check for access.
1 string reference to 'ctools_theme_ctools_access_check'
File
-
plugins/
access/ theme.inc, line 43
Code
function ctools_theme_ctools_access_check($conf, $context) {
if (!empty($GLOBALS['theme'])) {
$theme = $GLOBALS['theme'];
}
elseif (!empty($GLOBALS['custom_theme'])) {
$theme = $GLOBALS['custom_theme'];
}
elseif (!empty($GLOBALS['user']->theme)) {
$theme = $GLOBALS['user']->theme;
}
else {
$theme = variable_get('theme_default', 'garland');
}
return $conf['theme'] == $theme;
}