You are here

function campaignmonitor_menu in Campaign Monitor 7

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 campaignmonitor.module \campaignmonitor_menu()
  5. 6.2 campaignmonitor.module \campaignmonitor_menu()

Implements hook_menu().

File

./campaignmonitor.module, line 45
Module that plugs in Campaign Monitor functionality to your Drupal web site.

Code

function campaignmonitor_menu() {
  $items = array();
  $items['admin/config/services/campaignmonitor'] = array(
    'title' => 'Campaign Monitor',
    'description' => 'General Campaign Monitor settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'campaignmonitor_admin_settings_general',
    ),
    'access arguments' => array(
      'administer campaignmonitor',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'includes/campaignmonitor.admin.inc',
  );
  $items['admin/config/services/campaignmonitor/general'] = array(
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'title' => 'General',
    'weight' => -50,
  );
  $items['admin/config/services/campaignmonitor/lists'] = array(
    'title' => 'Lists',
    'page callback' => 'campaignmonitor_admin_settings_lists',
    'access arguments' => array(
      'administer campaignmonitor',
    ),
    'weight' => -40,
    'type' => MENU_LOCAL_TASK,
    'file' => 'includes/campaignmonitor_lists.admin.inc',
  );
  $items['admin/config/services/campaignmonitor/lists/add'] = array(
    'title' => 'Add list',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'campaignmonitor_admin_settings_list_create_form',
    ),
    'access arguments' => array(
      'administer campaignmonitor',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'includes/campaignmonitor_lists.admin.inc',
  );
  $items['admin/config/services/campaignmonitor/lists/%/edit'] = array(
    'title' => 'Edit list',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'campaignmonitor_admin_settings_list_edit',
      5,
    ),
    'access arguments' => array(
      'administer campaignmonitor',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'includes/campaignmonitor_lists.admin.inc',
  );
  $items['admin/config/services/campaignmonitor/lists/%/delete'] = array(
    'title' => 'Edit list',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'campaignmonitor_admin_settings_list_delete',
      5,
    ),
    'access arguments' => array(
      'administer campaignmonitor',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'includes/campaignmonitor_lists.admin.inc',
  );
  $items['admin/config/services/campaignmonitor/lists/%/enable'] = array(
    'title' => 'Enable list',
    'page callback' => 'campaignmonitor_admin_settings_list_enable',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer campaignmonitor',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'includes/campaignmonitor_lists.admin.inc',
  );
  $items['admin/config/services/campaignmonitor/lists/%/disable'] = array(
    'title' => 'Disable list',
    'page callback' => 'campaignmonitor_admin_settings_list_disable',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer campaignmonitor',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'includes/campaignmonitor_lists.admin.inc',
  );
  $items['admin/config/services/campaignmonitor/states'] = array(
    'title' => 'Statistics',
    'page callback' => 'campaignmonitor_admin_settings_stats',
    'access arguments' => array(
      'administer campaignmonitor',
    ),
    'weight' => -30,
    'type' => MENU_LOCAL_TASK,
    'file' => 'includes/campaignmonitor_stats.admin.inc',
  );
  return $items;
}