function mailchimp_menu in Mailchimp 6.2
Same name and namespace in other branches
- 5.2 mailchimp.module \mailchimp_menu()
- 5 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.3 mailchimp.module \mailchimp_menu()
- 7.4 mailchimp.module \mailchimp_menu()
Implementation of hook_menu.
File
- ./
mailchimp.module, line 406 - Mailchimp module.
Code
function mailchimp_menu() {
$items = array();
$items['user/%user/mailchimp'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mailchimp_subscribe_auth_form',
1,
),
'title callback' => 'mailchimp_user_settings_page_title',
'type' => MENU_LOCAL_TASK,
'access callback' => 'mailchimp_user_edit_access',
'access arguments' => array(
1,
),
'tab_parent' => 'user/%/edit',
'weight' => 10,
);
$items['mailchimp/subscribe'] = array(
'page callback' => 'mailchimp_subscribe_page',
'title callback' => 'mailchimp_subscribe_page_title',
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'access content',
),
);
$items['mailchimp/unsubscribe'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mailchimp_unsubscribe_form',
),
'title callback' => 'mailchimp_unsubscribe_page_title',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
$items['admin/settings/mailchimp'] = array(
'title' => 'MailChimp Configuration',
'description' => 'Manage MailChimp Settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mailchimp_admin_settings',
),
'access arguments' => array(
'administer mailchimp',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'mailchimp.admin.inc',
);
$items['admin/settings/mailchimp/rebuild'] = array(
'title' => 'Rebuild Users Table',
'page callback' => 'mailchimp_rebuild_users',
'access arguments' => array(
'administer mailchimp',
),
'weight' => 10,
);
return $items;
}