function mailchimp_menu in Mailchimp 7.3
Same name and namespace in other branches
- 5.2 mailchimp.module \mailchimp_menu()
- 5 mailchimp.module \mailchimp_menu()
- 6.2 mailchimp.module \mailchimp_menu()
- 6 mailchimp.module \mailchimp_menu()
- 7.5 mailchimp.module \mailchimp_menu()
- 7 mailchimp.module \mailchimp_menu()
- 7.2 mailchimp.module \mailchimp_menu()
- 7.4 mailchimp.module \mailchimp_menu()
Implements hook_menu().
File
- ./
mailchimp.module, line 42 - Mailchimp module.
Code
function mailchimp_menu() {
$items = array();
$items['admin/config/services/mailchimp'] = array(
'title' => 'MailChimp',
'description' => t('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' => t('Global Settings'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/services/mailchimp/list_cache_clear'] = array(
'title' => 'MailChimp webhooks endpoint',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mailchimp_clear_list_cache_form',
),
'access callback' => 'mailchimp_apikey_ready_access',
'access arguments' => array(
'administer mailchimp',
),
'file' => 'includes/mailchimp.admin.inc',
'type' => MENU_CALLBACK,
);
$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;
}