function context_theme_registry_alter in Context 6
Same name and namespace in other branches
- 6.3 context.core.inc \context_theme_registry_alter()
- 6.2 context.core.inc \context_theme_registry_alter()
- 7.3 context.core.inc \context_theme_registry_alter()
Implementation of hook_theme_registry_alter().
File
- ./
context.core.inc, line 17
Code
function context_theme_registry_alter(&$theme_registry) {
// Push theme_page() through a context_preprocess to provide
// context-sensitive menus and variables.
if (!in_array('context_preprocess_page', $theme_registry['page']['preprocess functions'])) {
$theme_registry['page']['preprocess functions'][] = 'context_preprocess_page';
}
// Reroute theme_blocks() through context_blocks to determine block
// visibility by context.
unset($theme_registry['blocks']['preprocess functions']);
$theme_registry['blocks']['function'] = 'context_blocks';
}