You are here

function ad_report_menu in Advertisement 6.2

Same name and namespace in other branches
  1. 5.2 report/ad_report.module \ad_report_menu()
  2. 5 report/ad_report.module \ad_report_menu()
  3. 6.3 report/ad_report.module \ad_report_menu()
  4. 6 report/ad_report.module \ad_report_menu()
  5. 7 report/ad_report.module \ad_report_menu()

Implementation of hook_menu().

File

report/ad_report.module, line 14
Provides comprehensive charts and reports about advertising statistics.

Code

function ad_report_menu() {
  $items = array();
  $items['admin/content/ad/report'] = array(
    'title' => t('Reports'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ad_report_admin',
    ),
    'access arguments' => array(
      'generate administrative reports',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/content/ad/report/display'] = array(
    'page callback' => 'ad_report_admin_display',
    'access arguments' => array(
      'generate administrative reports',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/content/ad/report/csv'] = array(
    'page callback' => 'ad_report_admin_ad_table',
    'page arguments' => array(
      '0',
      '0',
      array(),
      TRUE,
    ),
    'access arguments' => array(
      'generate administrative reports',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['node/%node/report'] = array(
    'title' => t('Reports'),
    'page callback' => 'ad_report_bargraph_handler',
    'page arguments' => array(
      1,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => 'ad_report_bargraph_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['node/%node/report/%/%/%'] = array(
    'title' => t('Reports'),
    'page callback' => 'ad_report_bargraph_handler',
    'page arguments' => array(
      1,
      3,
      4,
      5,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => 'ad_report_bargraph_access',
    'access arguments' => array(
      1,
    ),
  );
  return $items;
}