-
Notifications
You must be signed in to change notification settings - Fork 1
/
opendata.module
37 lines (35 loc) · 912 Bytes
/
opendata.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
<?php
/**
* @file opendata.module
*/
/**
* Implements hook_menu().
*/
function opendata_menu() {
$items['admin/config/services/opendata'] = array(
'title' => 'OpenData',
'description' => 'Access OpenData settings',
'page callback' => 'drupal_get_form',
'page arguments' => array('opendata_settings'),
'access arguments' => array('administer site configuration'),
'file' => 'opendata.admin.inc',
);
$items['data.json'] = array(
'page callback' => 'opendata_data_json',
'access arguments' => array('access content'),
'file' => 'opendata.pages.inc',
);
return $items;
}
/**
* Implements hook_help().
*/
function opendata_help($path, $arg) {
switch ($path) {
case 'admin/help#opendata':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t("A helpful entry about your module") . '<p>';
return $output;
}
}