You are here

function getclicky_menu in Clicky - Web Analytics in Real Time 6

Same name and namespace in other branches
  1. 8 getclicky.module \getclicky_menu()
  2. 5 getclicky.module \getclicky_menu()
  3. 7 getclicky.module \getclicky_menu()

Implementation of hook_menu().

File

./getclicky.module, line 47

Code

function getclicky_menu() {
  $items = array();
  $items['admin/settings/getclicky'] = array(
    'title' => t('GetClicky'),
    'description' => t('Configure the settings used to generate your GetClicky tracking code.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'getclicky_admin_settings_form',
    ),
    'access arguments' => array(
      'administer getclicky',
    ),
    'file' => 'getclicky.admin.inc',
  );
  $items['admin/settings/getclicky/settings'] = array(
    'title' => 'Settings',
    'access arguments' => array(
      'administer getclicky',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/settings/getclicky/clicky-stats-dashboard'] = array(
    'title' => 'Clicky Stats Dashboard',
    'description' => 'Shows the Clicky Stats Dashboard',
    'page callback' => 'drupal_goto',
    'page arguments' => array(
      'admin/reports/clicky-stats-dashboard',
    ),
    'access arguments' => array(
      'access clicky stats dashboard',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/reports/clicky-stats-dashboard'] = array(
    'title' => 'Clicky Stats Dashboard',
    'description' => 'Shows the Clicky Stats Dashboard',
    'page callback' => '__getclicky_output_stats_dashboard',
    'access arguments' => array(
      'access clicky stats dashboard',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  return $items;
}