function spaces_core_menu_alter in Spaces 6
Implementation of hook_menu_alter().
Purge router items provided by the blog module so that views-based replacements will work.
File
- spaces_core/
spaces_core.module, line 28
Code
function spaces_core_menu_alter(&$callbacks) {
if (module_exists('blog')) {
$unset = array(
'blog',
'blog/%user/feed',
'blog/%user_uid_optional',
);
foreach ($unset as $path) {
if (!empty($callbacks[$path]) && $callbacks[$path]['module'] == 'blog') {
unset($callbacks[$path]);
}
}
}
}