You are here

function commerce_reports_tax_menu in Commerce Reporting 7.4

Same name and namespace in other branches
  1. 7 commerce_reports_tax/commerce_reports_tax.module \commerce_reports_tax_menu()
  2. 7.2 modules/tax/commerce_reports_tax.module \commerce_reports_tax_menu()
  3. 7.3 modules/tax/commerce_reports_tax.module \commerce_reports_tax_menu()

Implements hook_menu().

File

modules/tax/commerce_reports_tax.module, line 33
Module file for Commerce Reports Tax.

Code

function commerce_reports_tax_menu() {
  $items = array();
  $items['admin/commerce/config/tax-reports'] = array(
    'title' => 'Tax reports settings',
    'description' => 'Configure tax reports settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_reports_tax_form',
    ),
    'access arguments' => array(
      'configure commerce tax reports',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'commerce_reports_tax.admin.inc',
  );
  $items['admin/commerce/config/tax-reports/generate'] = array(
    'title' => 'Generate tax report',
    'page callback' => 'commerce_reports_tax_generate_callback',
    'access arguments' => array(
      'configure commerce tax reports',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'commerce_reports_tax.admin.inc',
  );
  return $items;
}