function merci_reservation_menu_alter in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
File
- merci_reservation/
merci_reservation.module, line 56
Code
function merci_reservation_menu_alter(&$items) {
$items['admin/commerce/customer-profiles/%commerce_customer_profile/edit'] = array(
'title' => 'Edit',
'page callback' => 'commerce_customer_ui_customer_profile_form_wrapper',
'page arguments' => array(
3,
),
'access callback' => 'commerce_customer_profile_access',
'access arguments' => array(
'update',
3,
),
'weight' => 0,
'type' => MENU_LOCAL_TASK,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
'file' => drupal_get_path('module', 'commerce_customer_ui') . '/includes/commerce_customer_ui.profiles.inc',
);
$items['admin/commerce/customer-profiles/%commerce_customer_profile']['page callback'] = 'merci_reservation_customer_profile_form_wrapper';
//$items['admin/commerce/customer-profiles/%commerce_customer_profile']['type'] = MENU_DEFAULT_LOCAL_TASK;
$items['admin/commerce/customer-profiles/%commerce_customer_profile/view'] = array(
'title' => 'View',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
);
}