You are here

function themekey_compat_modules_disabled in ThemeKey 7.2

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

Implements hook_modules_disabled().

File

./themekey_compat.module, line 105
Integration of different theme switching modules into ThemeKey and its theme switching rule chain.

Code

function themekey_compat_modules_disabled($modules) {
  require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'themekey') . '/themekey_build.inc';
  variable_set('themekey_compat_modules_enabled', array_diff(variable_get('themekey_compat_modules_enabled', array()), $modules));
  foreach ($modules as $module) {
    themekey_update_static_rule('themekey_compat:module_' . $module . '_triggers_theme', FALSE);
  }
}