You are here

function commerce_file_menu in Commerce File 7

Same name and namespace in other branches
  1. 7.2 commerce_file.module \commerce_file_menu()

Implements hook_menu().

File

./commerce_file.module, line 198
Provides integration of file licenses with Commerce

Code

function commerce_file_menu() {
  $items = array();
  $items['admin/commerce/config/file-licenses'] = array(
    'title' => 'License settings',
    'description' => 'Configure general license settings, fields, and displays.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_file_license_settings_form',
    ),
    'access arguments' => array(
      'administer ' . COMMERCE_FILE_LICENSE_ENTITY_NAME,
    ),
    'file' => 'includes/commerce_file_license_ui.types.inc',
  );
  $items['admin/commerce/config/file-licenses/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  return $items;
}