You are here

function commerce_license_menu in Commerce License 7

Implements hook_menu().

File

./commerce_license.module, line 59
Provides a framework for selling access to local or remote resources.

Code

function commerce_license_menu() {
  $items['ajax/commerce_license/%entity_object'] = array(
    'load arguments' => array(
      'commerce_license',
    ),
    'delivery callback' => 'ajax_deliver',
    'page callback' => 'commerce_license_complete_checkout_ajax_callback',
    'page arguments' => array(
      2,
    ),
    'access callback' => TRUE,
    'file' => 'includes/commerce_license.checkout_pane.inc',
  );
  $items['admin/commerce/config/license'] = array(
    'title' => 'License settings',
    'description' => 'Configure licensing settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_license_settings_form',
    ),
    'access arguments' => array(
      'administer licenses',
    ),
    'file' => 'includes/commerce_license.admin.inc',
  );
  $items['admin/commerce/config/license/general'] = array(
    'title' => 'General',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -20,
  );
  return $items;
}