You are here

function ad_report_menu in Advertisement 6

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.2 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['node/%node/report'] = array(
    'title' => 'Reports',
    'page callback' => 'ad_report_bargraph',
    'page arguments' => array(
      1,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => 'ad_report_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['node/%node/report/monthly'] = array(
    'title' => 'Monthly Reports',
    'page callback' => 'ad_report_bargraph',
    'page arguments' => array(
      1,
      3,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => 'ad_report_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['node/%node/report/weekly'] = array(
    'title' => 'Weekly Reports',
    'page callback' => 'ad_report_bargraph',
    'page arguments' => array(
      1,
      3,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => 'ad_report_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['node/%node/report/daily'] = array(
    'title' => 'Daily Reports',
    'page callback' => 'ad_report_bargraph',
    'page arguments' => array(
      1,
      3,
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'access callback' => 'ad_report_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['node/%node/report/hourly'] = array(
    'title' => 'Hourly Reports',
    'page callback' => 'ad_report_bargraph',
    'page arguments' => array(
      1,
      3,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => 'ad_report_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['ad_report/%node/bargraph'] = array(
    'title' => 'Bar graph',
    'page callback' => 'ad_report_generate_bargraph',
    'page arguments' => array(
      1,
    ),
    'type' => MENU_CALLBACK,
    'access callback' => 'ad_report_access',
    'access arguments' => array(
      1,
    ),
  );
  return $items;
}