You are here

function mailchimp_menu in Mailchimp 7.2

Same name and namespace in other branches
  1. 5.2 mailchimp.module \mailchimp_menu()
  2. 5 mailchimp.module \mailchimp_menu()
  3. 6.2 mailchimp.module \mailchimp_menu()
  4. 6 mailchimp.module \mailchimp_menu()
  5. 7.5 mailchimp.module \mailchimp_menu()
  6. 7 mailchimp.module \mailchimp_menu()
  7. 7.3 mailchimp.module \mailchimp_menu()
  8. 7.4 mailchimp.module \mailchimp_menu()

Implements hook_menu().

File

./mailchimp.module, line 32
Mailchimp module.

Code

function mailchimp_menu() {
  $items = array();
  $items['admin/config/services/mailchimp'] = array(
    'title' => 'MailChimp',
    'description' => 'Manage MailChimp Settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mailchimp_admin_settings',
    ),
    'access arguments' => array(
      'administer mailchimp',
    ),
    'file' => 'includes/mailchimp.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/services/mailchimp/global'] = array(
    'title' => 'Global Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 10,
  );
  $items['mailchimp/webhook'] = array(
    'title' => 'MailChimp webhooks endpoint',
    'page callback' => 'mailchimp_process_webhook',
    'access callback' => 'mailchimp_process_webhook_access',
    'access arguments' => array(
      2,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}