You are here

function mailchimp_lists_menu in Mailchimp 7.5

Same name and namespace in other branches
  1. 7.2 modules/mailchimp_lists/mailchimp_lists.module \mailchimp_lists_menu()
  2. 7.3 modules/mailchimp_lists/mailchimp_lists.module \mailchimp_lists_menu()
  3. 7.4 modules/mailchimp_lists/mailchimp_lists.module \mailchimp_lists_menu()

Implements hook_menu().

File

modules/mailchimp_lists/mailchimp_lists.module, line 13

Code

function mailchimp_lists_menu() {
  $items = array();
  $items['admin/config/services/mailchimp/lists'] = array(
    'title' => t('Audiences'),
    'description' => t('Display MailChimp Audiences and configure Webhooks.'),
    'page callback' => 'mailchimp_lists_overview_page',
    'access callback' => 'mailchimp_apikey_ready_access',
    'access arguments' => array(
      'administer mailchimp',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'includes/mailchimp_lists.admin.inc',
    'weight' => 10,
  );
  $items['admin/config/services/mailchimp/fields'] = array(
    'title' => t('Fields'),
    'description' => t('Display MailChimp Subscription Fields and trigger merge variable updates.'),
    'page callback' => 'mailchimp_lists_fields_overview_page',
    'access callback' => 'mailchimp_apikey_ready_access',
    'access arguments' => array(
      'administer mailchimp',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'includes/mailchimp_lists.admin.inc',
    'weight' => 10,
  );
  $items['admin/config/services/mailchimp/lists/%/webhook/%'] = array(
    'title' => t('Enable/disable Webhooks'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mailchimp_lists_webhook_form',
      5,
      7,
    ),
    'access callback' => 'mailchimp_apikey_ready_access',
    'access arguments' => array(
      'administer mailchimp',
    ),
    'file' => 'includes/mailchimp_lists.admin.inc',
  );
  $items['admin/config/services/mailchimp/lists/update_mergevars/%/%/%'] = array(
    'title' => t('Mass Update Merge Variables'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mailchimp_lists_update_mergevars_form',
      6,
      7,
      8,
    ),
    'access callback' => 'mailchimp_apikey_ready_access',
    'access arguments' => array(
      'administer mailchimp',
    ),
    'file' => 'includes/mailchimp_lists.admin.inc',
  );
  return $items;
}