function views_megarow_menu_alter in Views Megarow 7
Implements hook_menu_alter().
File
- ./
views_megarow.module, line 479
Code
function views_megarow_menu_alter(&$items) {
// For compatibility reasons with panels mainly let's check if the callbacks
// should be overriden.
// We need to wrap some logic around the default node edition page and user
// edition page in order to be able to tell the system that we are editing
// a node from a megarow context.
if (variable_get('views_megarow_override_node_edit', TRUE)) {
$items['node/%node/edit']['page callback'] = 'views_megarow_node_page_edit';
}
if (variable_get('views_megarow_override_user_edit', TRUE)) {
$items['user/%user/edit']['page callback'] = 'views_megarow_user_page_edit';
}
}