function apachesolr_stats_menu in Apache Solr Statistics 6
Same name and namespace in other branches
- 6.3 apachesolr_stats.module \apachesolr_stats_menu()
- 7 apachesolr_stats.module \apachesolr_stats_menu()
Implementation of hook_menu().
File
- ./
apachesolr_stats.module, line 11 - Keeps and reports statistics about Apache Solr usage and performance.
Code
function apachesolr_stats_menu() {
return array(
'admin/settings/apachesolr/stats' => array(
'title' => 'Statistics',
'description' => 'Apache Solr Statistics settings to measure usage and performance.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'apachesolr_stats_admin',
),
'access arguments' => array(
'administer search',
),
'type' => MENU_LOCAL_TASK,
),
'admin/reports/apachesolr/stats' => array(
'title' => 'Statistics',
'description' => 'Report of Apache Solr usage and performance.',
'page callback' => 'apachesolr_stats_report',
'page arguments' => array(),
'access arguments' => array(
'administer search',
),
'type' => MENU_LOCAL_TASK,
),
'apachesolr_stats/gadget' => array(
'title' => 'Apache Solr Google Gadget',
'page callback' => 'apachesolr_stats_report_gadget',
'description' => 'Provides content for Google Gadget.',
'page arguments' => array(),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
),
'apachesolr_stats/element/%/%/%' => array(
'title' => 'Apache Solr Google Gadget Elements',
'page callback' => 'apachesolr_stats_report_gadget_element',
'description' => 'Provides content for Google Gadget.',
'page arguments' => array(
2,
3,
4,
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
),
);
}