You are here

function themekey_admin_theme_warning in ThemeKey 6.2

Same name and namespace in other branches
  1. 6.4 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()
themekey_rule_chain_form in ./themekey_admin.inc
Form builder for the rule chain.

File

./themekey_admin.inc, line 674

Code

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