function commerce_reorder_menu in Commerce Reorder 7
Same name and namespace in other branches
- 7.2 commerce_reorder.module \commerce_reorder_menu()
Implementation of hook_menu
File
- ./
commerce_reorder.module, line 11 - Allows users to create a new order from their order history.
Code
function commerce_reorder_menu() {
$items = array();
// Reorder tab on orders.
$items['admin/commerce/orders/%commerce_order/reorder'] = array(
'title' => 'Reorder',
'page callback' => 'commerce_reorder_reorder_callback',
'page arguments' => array(
3,
),
'access arguments' => array(
'commerce_reorder_access',
),
'type' => MENU_LOCAL_ACTION,
'weight' => 15,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
);
return $items;
}