-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcommerce_ui.module
56 lines (50 loc) · 1.65 KB
/
commerce_ui.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* @file
* Defines menu items common to the various Backdrop Commerce UI modules.
*/
/**
* Implements hook_menu().
*/
function commerce_ui_menu() {
$items = array();
// Top level "Store" container.
$items['admin/commerce'] = array(
'title' => 'Store',
'description' => 'Administer your store.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('access administration pages'),
'file path' => backdrop_get_path('module', 'system'),
'file' => 'system.admin.inc',
'weight' => -7,
);
$items['admin/commerce/config'] = array(
'title' => 'Configuration',
'description' => 'Configure settings and business rules for your store.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('access administration pages'),
'type' => MENU_NORMAL_ITEM,
'weight' => 50,
'file path' => backdrop_get_path('module', 'system'),
'file' => 'system.admin.inc',
);
$items['admin/commerce/config/currency'] = array(
'title' => 'Currency settings',
'description' => 'Configure the default currency and display settings.',
'page callback' => 'backdrop_get_form',
'page arguments' => array('commerce_currency_settings_form'),
'access arguments' => array('configure store'),
'type' => MENU_NORMAL_ITEM,
'file' => 'includes/commerce_ui.admin.inc',
);
return $items;
}
/**
* Implements hook_autoload_info().
*/
function commerce_ui_autoload_info() {
return array(
'BackdropCommerceEntityControllerInterface' => 'includes/commerce.controller.inc',
'BackdropCommerceEntityController' => 'includes/commerce.controller.inc',
);
}