-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmapbox_geostats.module
More file actions
47 lines (38 loc) · 1.27 KB
/
mapbox_geostats.module
File metadata and controls
47 lines (38 loc) · 1.27 KB
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
/**
* Implementation of hook_menu
*/
function mapbox_geostats_menu() {
$items['all-ages-map'] = array(
'title' => t('Global Vision Database Maps (All ages)'),
'page callback' => 'theme',
'page arguments' => array('all-ages-mapbox-geostats-map'),
'access callback' => true,
'type' => MENU_CALLBACK
);
$items['adults-over-50-map'] = array(
'title' => t('Global Vision Database Maps (Adults > 50)'),
'page callback' => 'theme',
'page arguments' => array('adult-mapbox-geostats-map'),
'access callback' => true,
'type' => MENU_CALLBACK
);
return $items;
}
/**
* Implementation of hook_theme
*/
function mapbox_geostats_theme($existing, $type, $theme, $path) {
return array(
'all-ages-mapbox-geostats-map' => array(
'template' => 'all-ages-map',
'path' => drupal_get_path('module', 'mapbox_geostats') . '/templates',
'variables' => array()
),
'adult-mapbox-geostats-map' => array(
'template' => 'adults-over-50-map',
'path' => drupal_get_path('module', 'mapbox_geostats') . '/templates',
'variables' => array()
)
);
}