You are here

function campaignmonitor_menu in Campaign Monitor 6

Same name and namespace in other branches
  1. 5.2 campaignmonitor.module \campaignmonitor_menu()
  2. 5 campaignmonitor.module \campaignmonitor_menu()
  3. 6.3 campaignmonitor.module \campaignmonitor_menu()
  4. 6.2 campaignmonitor.module \campaignmonitor_menu()
  5. 7 campaignmonitor.module \campaignmonitor_menu()

File

./campaignmonitor.module, line 19

Code

function campaignmonitor_menu() {
  $items = array();
  $items['admin/settings/campaignmonitor'] = array(
    'title' => t('Campaign Monitor'),
    'description' => t('Setup Campaign Monitor values.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'campaignmonitor_admin',
    ),
    'access arguments' => array(
      'administer campaignmonitor',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['newsletter_archive'] = array(
    'title' => t('Newsletter Archive'),
    'page callback' => 'campaignmonitor_newsletter_archive',
    'access arguments' => array(
      'access archive',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  $items['user/%user/newsletters'] = array(
    'title' => t('My Newsletters'),
    'page callback' => 'campaignmonitor_user_page',
    'access arguments' => array(
      'join newsletter',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
  );
  return $items;
}