function mailchimp_menu in Mailchimp 6
Same name and namespace in other branches
- 5.2 mailchimp.module \mailchimp_menu()
- 5 mailchimp.module \mailchimp_menu()
- 6.2 mailchimp.module \mailchimp_menu()
- 7.5 mailchimp.module \mailchimp_menu()
- 7 mailchimp.module \mailchimp_menu()
- 7.2 mailchimp.module \mailchimp_menu()
- 7.3 mailchimp.module \mailchimp_menu()
- 7.4 mailchimp.module \mailchimp_menu()
Implementation of hook_menu.
File
- ./
mailchimp.module, line 198 - Mailchimp module.
Code
function mailchimp_menu() {
$items = array();
$items['mailchimp/subscribe'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mailchimp_subscribe_form',
),
'title' => 'Newsletter Subscription',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
$items['mailchimp/subscribe/message'] = array(
'page callback' => 'mailchimp_subscribe_message',
'title' => 'MailChimp Subscription Message',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
$items['mailchimp/reset'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mailchimp_reset',
),
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer site configuration',
),
);
$items['mailchimp/unsubscribe'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mailchimp_unsubscribe_form',
),
'title' => 'Newsletter Unsubscribe',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
$items['mailchimp/unsubscribe/success'] = array(
'page callback' => 'mailchimp_unsubscribe_success',
'title' => 'Unsubscription Confirmed',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
$items['mailchimp/unsubscribe/failure'] = array(
'page callback' => 'mailchimp_unsubscribe_failure',
'title' => 'Unsubscription Failed',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
$items['admin/settings/mailchimp'] = array(
'title' => 'MailChimp',
'description' => 'Manage MailChimp Settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mailchimp_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
// optional
return $items;
}