analytics_ui.module in Analytics 6
Administrative interface for the Community Analytics module.
File
modules/analytics_ui/analytics_ui.moduleView source
<?php
/**
* @file
* Administrative interface for the Community Analytics module.
*/
/**
* Implementation of hook_autoload_info().
*/
function analytics_ui_autoload_info() {
return array(
'AnalyticsChart' => array(
'file' => 'includes/analyticschart.inc',
),
);
}
/**
* Implementation of hook_perm().
*/
function analytics_ui_perm() {
return array(
'access analytics reports',
);
}
/**
* Implementation of hook_theme().
*/
function analytics_ui_theme() {
return array(
'analytics_reports_overview' => array(
'arguments' => array(
'overview' => NULL,
),
'file' => 'analytics_ui.admin.inc',
),
'analytics_event_overview' => array(
'arguments' => array(
'overview' => NULL,
),
'file' => 'analytics_ui.admin.inc',
),
);
}
/**
* Implementation of hook_menu().
*/
function analytics_ui_menu() {
$items = array();
$items['admin/reports/analytics'] = array(
'title' => 'Analytics overview',
'description' => 'View analytics reports',
'page callback' => 'analytics_reports_overview',
'access arguments' => array(
'access analytics reports',
),
'file' => 'analytics_ui.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/analytics/event/%analytics_analytic'] = array(
'title callback' => 'analytics_ui_event_title',
'title arguments' => array(
4,
),
'page callback' => 'analytics_event_overview',
'page arguments' => array(
4,
),
'access arguments' => array(
'access analytics reports',
),
'file' => 'analytics_ui.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}
function analytics_ui_event_title($event) {
return filter_xss_admin($event
->getEventName()) . ' ' . t('overview');
}
Functions
Name | Description |
---|---|
analytics_ui_autoload_info | Implementation of hook_autoload_info(). |
analytics_ui_event_title | |
analytics_ui_menu | Implementation of hook_menu(). |
analytics_ui_perm | Implementation of hook_perm(). |
analytics_ui_theme | Implementation of hook_theme(). |