function themekey_menu_alter in ThemeKey 7.3
Implements hook_menu_alter().
Replaces theme callbacks.
File
- ./
themekey.module, line 127 - ThemeKey is designed as a generic theme-switching module.
Code
function themekey_menu_alter(&$items) {
if (variable_get('themekey_unsafe_ajax_base_page_theme', 0)) {
foreach ($items as &$item) {
if (isset($item['theme callback']) && $item['theme callback'] == 'ajax_base_page_theme') {
$item['theme callback'] = 'themekey_ajax_base_page_theme';
}
}
}
}