function themekey_admin_theme_warning in ThemeKey 7.3
Same name and namespace in other branches
- 6.4 themekey_admin.inc \themekey_admin_theme_warning()
- 6.2 themekey_admin.inc \themekey_admin_theme_warning()
- 6.3 themekey_admin.inc \themekey_admin_theme_warning()
- 7 themekey_admin.inc \themekey_admin_theme_warning()
- 7.2 themekey_admin.inc \themekey_admin_theme_warning()
Detects if there's an active administration theme and displays a warning.
1 call to themekey_admin_theme_warning()
File
- ./
themekey_admin.inc, line 923
Code
function themekey_admin_theme_warning() {
if (!in_array('system', variable_get('themekey_compat_modules_enabled', array())) && variable_get('admin_theme', '0')) {
drupal_set_message(filter_xss(t('%admin_theme is configured as administration theme at !link. This setting is more powerful than a corresponding ThemeKey rule.', array(
'%admin_theme' => variable_get('admin_theme', '0'),
'!link' => l(t('!path', array(
'!path' => 'admin/appearance',
)), 'admin/appearance'),
))), 'warning');
if (variable_get('node_admin_theme', '0')) {
drupal_set_message(filter_xss(t('As configured at !link, adding or editing a node will use the administration theme, %admin_theme.', array(
'%admin_theme' => variable_get('admin_theme', '0'),
'!link' => l(t('!path', array(
'!path' => 'admin/appearance',
)), 'admin/appearance'),
))), 'warning');
}
}
}