You are here

function themekey_admin_theme_warning in ThemeKey 7

Same name and namespace in other branches
  1. 6.4 themekey_admin.inc \themekey_admin_theme_warning()
  2. 6.2 themekey_admin.inc \themekey_admin_theme_warning()
  3. 6.3 themekey_admin.inc \themekey_admin_theme_warning()
  4. 7.3 themekey_admin.inc \themekey_admin_theme_warning()
  5. 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()
theme_themekey_rule_chain_form in ./themekey_admin.inc
Themes themekey_rule_chain_form() and adds drag'n'drop features.

File

./themekey_admin.inc, line 730

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');
    }
  }
}