You are here

function themekey_admin_theme_warning in ThemeKey 6.4

Same name and namespace in other branches
  1. 6.2 themekey_admin.inc \themekey_admin_theme_warning()
  2. 6.3 themekey_admin.inc \themekey_admin_theme_warning()
  3. 7.3 themekey_admin.inc \themekey_admin_theme_warning()
  4. 7 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 703

Code

function themekey_admin_theme_warning() {
  if (variable_get('admin_theme', '0')) {
    drupal_set_message(t('%admin_theme is configured as the 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/settings/admin',
      )), 'admin/settings/admin'),
    )), 'warning');
    if (variable_get('node_admin_theme', '0')) {
      drupal_set_message(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/settings/admin',
        )), 'admin/settings/admin'),
      )), 'warning');
    }
  }
}