You are here

function constant_contact_menu in Constant Contact 6.2

Same name and namespace in other branches
  1. 5 constant_contact.module \constant_contact_menu()
  2. 6.3 constant_contact.module \constant_contact_menu()
  3. 6 constant_contact.module \constant_contact_menu()
  4. 7.3 constant_contact.module \constant_contact_menu()

Adds an admin menu for the Cnstant Contact module

File

./constant_contact.module, line 71

Code

function constant_contact_menu() {
  $items = array();
  $items['admin/constant_contact'] = array(
    'title' => 'Constant contact',
    'description' => 'Setup and configure your Constant Contact signup form',
    'page callback' => 'constant_contact_intro',
    'access arguments' => array(
      'administer constant_contact',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'system.admin.inc',
  );
  $items['admin/constant_contact/settings'] = array(
    'title' => 'Change settings',
    'description' => 'Change your constant contact settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'constant_contact_settings',
    ),
    'access arguments' => array(
      'administer constant_contact',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'system.admin.inc',
  );
  $items['admin/constant_contact/lists'] = array(
    'title' => 'Contact Lists',
    'description' => 'Manage your contact lists',
    'page callback' => 'constant_contact_manage_lists',
    'access arguments' => array(
      'administer constant_contact',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'contactlists.admin.inc',
  );
  $items['admin/constant_contact/lists/add'] = array(
    'title' => 'Add List',
    'description' => 'Add a new contact list to constant contact',
    'page callback' => 'constant_contact_add_list',
    'access arguments' => array(
      'administer constant_contact',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'contactlists.admin.inc',
  );
  $items['admin/constant_contact/lists/edit/%'] = array(
    'title' => 'Edit List',
    'description' => 'Edit a contact list',
    'page callback' => 'constant_contact_edit_list',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'administer constant_contact',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'contactlists.admin.inc',
  );
  $items['admin/constant_contact/lists/delete/%'] = array(
    'title' => 'Delete List',
    'description' => 'Delete a contact list',
    'page callback' => 'constant_contact_delete_list',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'administer constant_contact',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'contactlists.admin.inc',
  );
  return $items;
}