-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatistics_server.module
45 lines (41 loc) · 1.26 KB
/
statistics_server.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
<?php
/**
* @file
* Collect and show statistics from several drupal instances.
*
* A longer description will follow here.
*/
require_once 'includes/statistics_server.form.inc';
require_once 'includes/statistics_server.statistics.inc';
/**
* Implements hook_menu().
*/
function statistics_server_menu() {
$items = array();
$items['admin/statistics_server'] = array(
'title' => 'Statistics',
'description' => 'Collect and show statistics of other Drupal installations',
'page callback' => 'statistics_server_list',
'access arguments' => array('administer statistics_server'),
);
$items['admin/statistics_server/manage'] = array(
'title' => 'Manage Clients',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/statistics_server/general'] = array(
'title' => 'General Statistics',
'page callback' => 'statistics_server_general',
'access arguments' => array('administer statistics_server'),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/statistics_server/more'] = array(
'title' => 'More Statistics',
'page callback' => 'statistics_server_more',
'access arguments' => array('administer statistics_server'),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
return $items;
}