function mailchimp_lists_menu in Mailchimp 7.4
Same name and namespace in other branches
- 7.5 modules/mailchimp_lists/mailchimp_lists.module \mailchimp_lists_menu()
- 7.2 modules/mailchimp_lists/mailchimp_lists.module \mailchimp_lists_menu()
- 7.3 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('Lists'),
'description' => t('Display Mailchimp Lists 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;
}