function constant_contact_menu in Constant Contact 6
Same name and namespace in other branches
- 5 constant_contact.module \constant_contact_menu()
- 6.3 constant_contact.module \constant_contact_menu()
- 6.2 constant_contact.module \constant_contact_menu()
- 7.3 constant_contact.module \constant_contact_menu()
Implementation of hook_menu().
File
- ./
constant_contact.module, line 14
Code
function constant_contact_menu($may_cache) {
$items = array();
$items[] = array(
'path' => 'admin/settings/constant_contact',
'title' => t('Constant Contact Settings'),
'description' => t('Configure settings for Constant Contact'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'constant_contact_admin_settings',
),
'access' => user_access('admininister constant_contact'),
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'admin/settings/constant_contact_import',
'title' => t('Constant Contact Import Users'),
'description' => t('Import existing Drupal users to Constant Contact'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'constant_contact_import',
),
'access' => user_access('admininister constant_contact'),
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'constant_contact/unsubscribe',
'title' => t('List Unsubscribe'),
'description' => t('Unsubscribe from a list'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'constant_contact_unsubscribe_confirm',
),
'type' => MENU_CALLBACK,
'access' => TRUE,
);
return $items;
}