function uc_taxes_menu in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_taxes/uc_taxes.module \uc_taxes_menu()
- 6.2 uc_taxes/uc_taxes.module \uc_taxes_menu()
Implements hook_menu().
File
- uc_taxes/
uc_taxes.module, line 24 - Ubercart Taxes module.
Code
function uc_taxes_menu() {
$items = array();
$items['admin/store/settings/taxes'] = array(
'title' => 'Taxes',
'description' => 'Configure tax rates and rules.',
'page callback' => 'uc_taxes_admin_settings',
'access arguments' => array(
'configure taxes',
),
'file' => 'uc_taxes.admin.inc',
);
$items['admin/store/settings/taxes/add'] = array(
'title' => 'Add a tax rate',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_taxes_form',
),
'access arguments' => array(
'configure taxes',
),
'file' => 'uc_taxes.admin.inc',
'type' => MENU_LOCAL_ACTION,
);
$items['admin/store/settings/taxes/%/edit'] = array(
'title' => 'Edit a tax rate',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_taxes_form',
4,
),
'access arguments' => array(
'configure taxes',
),
'file' => 'uc_taxes.admin.inc',
);
$items['admin/store/settings/taxes/%/clone'] = array(
'page callback' => 'uc_taxes_clone',
'page arguments' => array(
4,
),
'access arguments' => array(
'configure taxes',
),
'file' => 'uc_taxes.admin.inc',
);
$items['admin/store/settings/taxes/%/delete'] = array(
'title' => 'Delete tax rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_taxes_delete_form',
4,
),
'access arguments' => array(
'configure taxes',
),
'file' => 'uc_taxes.admin.inc',
);
$items += rules_ui()
->config_menu('admin/store/settings/taxes');
return $items;
}