You are here

function themekey_themekey_custom_theme_alter in ThemeKey 7.3

Implements hook_themekey_custom_theme_alter(). Delegates to pseudo hooks in ThemeKey's module plugins.

File

./themekey.module, line 496
ThemeKey is designed as a generic theme-switching module.

Code

function themekey_themekey_custom_theme_alter(&$custom_theme, $rules_matched) {
  $modules =& drupal_static('themekey_modules', array());
  foreach ($modules as $module) {
    $function = 'themekey_' . $module . '_themekey_custom_theme_alter';
    if (function_exists($function)) {
      $function($custom_theme, $rules_matched);
    }
  }
}