You are here

function node_registration_menu_alter in Node registration 7

Implements hook_menu_alter().

File

./node_registration.module, line 420

Code

function node_registration_menu_alter(&$items) {
  $item_fields =& $items['admin/structure/node_registration/manage/%node_registration_type/fields'];
  $item_display =& $items['admin/structure/node_registration/manage/%node_registration_type/display'];
  $item_fields['tab_parent'] = $item_display['tab_parent'] = 'admin/structure/node_registration/manage/%';
  $item_view =& $items['node/%/node_registration'];
  $item_view['access callback'] = 'node_registration_node_access';
  $item_view['access arguments'] = array(
    1,
    'registration settings',
  );
}