-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmymodule.module
More file actions
44 lines (41 loc) · 884 Bytes
/
Copy pathmymodule.module
File metadata and controls
44 lines (41 loc) · 884 Bytes
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
<?php
/**
* @file
* A short description of this module.
*/
/**
* Implements hook_config_info().
*/
function mymodule_config_info() {
return array(
'mymodule.settings' => array(
'label' => t('MyModule settings'),
'group' => t('Configuration'),
),
);
}
/**
* Implements hook_menu().
*/
function mymodule_menu() {
return array(
'admin/config/system/mymodule' => array(
'title' => 'MyModule',
'description' => 'Configure MyModule.',
'page callback' => 'backdrop_get_form',
'page arguments' => array('mymodule_configuration_form'),
'access arguments' => array('administer mymodule'),
'file' => 'mymodule.admin.inc',
),
);
}
/**
* Implements hook_permission().
*/
function mymodule_permission() {
return array(
'administer mymodule' => array(
'title' => t('Administer MyModule'),
),
);
}