You are here

function themekey_debug_form_node_form_alter in ThemeKey 7.2

Same name and namespace in other branches
  1. 7.3 themekey_debug.module \themekey_debug_form_node_form_alter()
  2. 7 themekey_debug.module \themekey_debug_form_node_form_alter()

Implements hook_form_node_form_alter().

Detects if custom theme has been skipped because the adminstration theme is used for node editing.

File

./themekey_debug.module, line 151
Provides a debug mode for module ThemeKey.

Code

function themekey_debug_form_node_form_alter() {
  if (variable_get('themekey_debug_trace_rule_switching', FALSE)) {
    if (variable_get('node_admin_theme', '0')) {
      themekey_set_debug_message('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'),
      ), TRUE, TRUE);
    }
  }
}