1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Defines menu items common to the various Drupal Commerce UI modules.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
/**
|
10 |
|
|
* Implements hook_menu().
|
11 |
|
|
*/
|
12 |
|
|
function commerce_ui_menu() {
|
13 |
|
|
$items = array();
|
14 |
|
|
|
15 |
|
|
// Top level "Store" container.
|
16 |
|
|
$items['admin/commerce'] = array(
|
17 |
|
|
'title' => 'Store',
|
18 |
|
|
'description' => 'Administer your store.',
|
19 |
|
|
'page callback' => 'system_admin_menu_block_page',
|
20 |
|
|
'access arguments' => array('access administration pages'),
|
21 |
|
|
'file path' => drupal_get_path('module', 'system'),
|
22 |
|
|
'file' => 'system.admin.inc',
|
23 |
|
|
'weight' => -7,
|
24 |
|
|
);
|
25 |
|
|
$items['admin/commerce/config'] = array(
|
26 |
|
|
'title' => 'Configuration',
|
27 |
|
|
'description' => 'Configure settings and business rules for your store.',
|
28 |
|
|
'page callback' => 'system_admin_menu_block_page',
|
29 |
|
|
'access arguments' => array('access administration pages'),
|
30 |
|
|
'type' => MENU_NORMAL_ITEM,
|
31 |
|
|
'weight' => 50,
|
32 |
|
|
'file path' => drupal_get_path('module', 'system'),
|
33 |
|
|
'file' => 'system.admin.inc',
|
34 |
|
|
);
|
35 |
|
|
$items['admin/commerce/config/currency'] = array(
|
36 |
|
|
'title' => 'Currency settings',
|
37 |
|
|
'description' => 'Configure the default currency and display settings.',
|
38 |
|
|
'page callback' => 'drupal_get_form',
|
39 |
|
|
'page arguments' => array('commerce_currency_settings_form'),
|
40 |
|
|
'access arguments' => array('configure store'),
|
41 |
|
|
'type' => MENU_NORMAL_ITEM,
|
42 |
|
|
'file' => 'includes/commerce_ui.admin.inc',
|
43 |
|
|
);
|
44 |
|
|
|
45 |
|
|
return $items;
|
46 |
|
|
} |