You are here

function newsletter_statistics_menu in Newsletter 7.2

Implements hook_menu().

File

modules/statistics/newsletter_statistics.module, line 11

Code

function newsletter_statistics_menu() {
  $items = array();
  $items['admin/config/media/newsletter/statistics'] = array(
    'title' => 'Statistics',
    'description' => 'View newsletter statistics like opens and clicks.',
    'access arguments' => array(
      'access newsletter statistics',
    ),
    'weight' => 10,
  );
  $items['admin/config/media/newsletter/statistics/general'] = array(
    'title' => 'General',
    'description' => 'Watch general statistics.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'newsletter_statistics_general',
    ),
    'file' => 'includes/newsletter_statistics.admin.inc',
    'access arguments' => array(
      'access newsletter statistics',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/media/newsletter/statistics/graphic'] = array(
    'title' => 'Graphic',
    'description' => 'Watch advanced JQuery statistics.',
    'access arguments' => array(
      'access newsletter statistics',
    ),
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'newsletter_statistics_graphic',
    'file' => 'includes/newsletter_statistics.admin.inc',
    'weight' => 1,
  );
  $items['newsletter/statistics/%newsletter_subscriber_by_hash/%newsletter'] = array(
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'page callback' => 'newsletter_statistics_open',
    'page arguments' => array(
      2,
    ),
    'file' => 'includes/newsletter_statistics.pages.inc',
  );
  return $items;
}