You are here

function commerce_stock_menu in Commerce Stock 7.2

Same name and namespace in other branches
  1. 7 commerce_stock.module \commerce_stock_menu()

Implements hook_menu().

File

./commerce_stock.module, line 19
Commerce Stock module.

Code

function commerce_stock_menu() {
  $items = array();
  $items['admin/commerce/config/stock'] = array(
    'title' => 'Stock management',
    'description' => 'Configure stock management.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_stock_admin_form',
    ),
    'access arguments' => array(
      'administer commerce_stock settings',
    ),
    'file' => 'includes/commerce_stock.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/commerce/config/stock/api'] = array(
    'title' => 'Stock management API',
    'description' => 'Configure stock management API.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_stock_admin_form',
    ),
    'access arguments' => array(
      'administer commerce_stock settings',
    ),
    'file' => 'includes/commerce_stock.admin.inc',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  return $items;
}