function oa_clone_menu_alter in Open Atrium Clone 7.2
Implements hook_menu_alter().
File
- ./
oa_clone.module, line 58
Code
function oa_clone_menu_alter(&$items) {
if (isset($items[OA_CLONE_ACTION_PATH])) {
// MENU_LOCAL_ACTION doesn't really fit in with Open Atrium's UI design,
// it isn't used anywhere else. Instead we use tabs and contextual_tabs,
// so let's switch this!
$items[OA_CLONE_ACTION_PATH]['type'] = MENU_LOCAL_TASK;
// We rebuild the node edit form using Panels, but by default the Clone
// module won't use this. We replace it's page callback to fix that!
$items[OA_CLONE_ACTION_PATH]['page callback'] = 'oa_clone_node_check';
}
if (isset($items[OA_CLONE_CREATE_SPACE_PATH])) {
// We have to conditionally replace the normal 'Create Space' page
// with one that can clone.
$items[OA_CLONE_CREATE_SPACE_PATH]['page callback'] = 'oa_clone_create_space_page_callback';
}
}