You are here

function commerce_shipping_ui_menu in Commerce Shipping 7

Same name and namespace in other branches
  1. 7.2 commerce_shipping_ui.module \commerce_shipping_ui_menu()

Implements hook_menu().

File

./commerce_shipping_ui.module, line 11
Default Shipping UI for Drupal Commerce.

Code

function commerce_shipping_ui_menu() {
  $items = array();

  // Payment method Rules administration page.
  $items['admin/commerce/config/shipping-methods'] = array(
    'title' => 'Shipping methods',
    'description' => 'Enable and configure shipping method rule configurations.',
    'page callback' => 'commerce_shipping_ui_admin_page',
    'access arguments' => array(
      'configure store',
    ),
    'file' => 'includes/commerce_shipping_ui.admin.inc',
  );

  // Add the menu items for the various Rules forms.
  $controller = new RulesUIController();
  $items += $controller
    ->config_menu('admin/commerce/config/shipping-methods');
  return $items;
}