-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcmidemo.module
47 lines (42 loc) · 960 Bytes
/
cmidemo.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
<?php
/**
* @file
*
*/
/**
* Implements hook_menu().
*/
function cmidemo_menu() {
$items = array();
$items['cmidemo'] = array(
'title' => 'CMI Demo Hello',
'description' => 'The CMI Demo Hello page.',
'router_name' => 'cmidemo.hello',
);
$items['cmidemo/about'] = array(
'title' => 'CMI Demo About',
'description' => 'The CMI Demo About page.',
'router_name' => 'cmidemo.about',
);
$items['cmidemo/config'] = array(
'title' => 'CMI Demo configuration',
'description' => 'The CMI Demo Settings page.',
'router_name' => 'cmidemo.settings',
);
return $items;
}
/**
* Implements hook_theme().
*/
function cmidemo_theme() {
return array(
'cmidemo_hello' => array(
'variables' => array('hello' => NULL, 'name' => NULL),
'template' => 'cmidemo-hello',
),
'cmidemo_about' => array(
'variables' => array('about' => NULL),
'template' => 'cmidemo-about',
),
);
}