function context_menu_alter in Context 6.3
Implementation of hook_menu_alter(). If core block handling is disabled, remove menu items.
File
- ./
context.core.inc, line 18
Code
function context_menu_alter(&$items) {
if (variable_get('context_reaction_block_disable_core', FALSE)) {
foreach ($items as $path => $item) {
if (strpos($path, 'admin/build/block') === 0) {
unset($items[$path]);
}
}
}
}