function mass_contact_menu in Mass Contact 7
Same name and namespace in other branches
- 5.2 mass_contact.module \mass_contact_menu()
- 5 mass_contact.module \mass_contact_menu()
- 6 mass_contact.module \mass_contact_menu()
Implements hook_menu().
File
- ./
mass_contact.module, line 150 - This is the main code file for the Mass Contact module.
Code
function mass_contact_menu() {
$items = array();
$items['admin/config/system/mass_contact'] = array(
'title' => 'Mass Contact',
'page callback' => 'mass_contact_admin_categories',
'access arguments' => array(
'mass contact administer',
),
'description' => 'Configure Mass Contact and set up categories of people to send mail to.',
'file' => 'mass_contact.admin.inc',
);
$items['admin/config/system/mass_contact/list'] = array(
'title' => 'Category list',
'page callback' => 'mass_contact_admin_categories',
'access arguments' => array(
'mass contact administer',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'description' => 'A listing of all existing categories.',
'file' => 'mass_contact.admin.inc',
);
$items['admin/config/system/mass_contact/add'] = array(
'title' => 'Add category',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mass_contact_admin_edit',
),
'access arguments' => array(
'mass contact administer',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
'description' => 'Add a new category.',
'file' => 'mass_contact.admin.inc',
);
$items['admin/config/system/mass_contact/edit'] = array(
'title' => 'Edit Mass Contact category',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mass_contact_admin_edit',
),
'access arguments' => array(
'mass contact administer',
),
'type' => MENU_CALLBACK,
'description' => 'Modify an existing category.',
'file' => 'mass_contact.admin.inc',
);
$items['admin/config/system/mass_contact/delete'] = array(
'title' => 'Delete Mass Contact category',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mass_contact_admin_delete',
),
'access arguments' => array(
'mass contact administer',
),
'type' => MENU_CALLBACK,
'description' => 'Remove an existing category.',
'file' => 'mass_contact.admin.inc',
);
$items['admin/config/system/mass_contact/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mass_contact_admin_settings_misc',
),
'access arguments' => array(
'mass contact administer',
),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
'description' => 'Configuration options for Mass Contact.',
'file' => 'mass_contact.admin.inc',
);
$items['admin/config/system/mass_contact/settings/misc'] = array(
'title' => 'Miscellaneous',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mass_contact_admin_settings_misc',
),
'access arguments' => array(
'mass contact administer',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'description' => 'Miscellaneous configuration options for Mass Contact.',
'file' => 'mass_contact.admin.inc',
);
$items['admin/config/system/mass_contact/settings/header'] = array(
'title' => 'Message header',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mass_contact_admin_settings_header',
),
'access arguments' => array(
'mass contact administer',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
'description' => 'Configuration options for the headers of the messages to be sent.',
'file' => 'mass_contact.admin.inc',
);
$items['admin/config/system/mass_contact/settings/body'] = array(
'title' => 'Message body',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mass_contact_admin_settings_body',
),
'access arguments' => array(
'mass contact administer',
),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
'description' => 'Configuration options for the bodies of the messages to be sent.',
'file' => 'mass_contact.admin.inc',
);
$items['mass_contact'] = array(
'title' => 'Mass Contact',
'page callback' => 'mass_contact_site_page',
'access arguments' => array(
'mass contact send messages',
),
'description' => 'Send an email message to multiple users of this website.',
'file' => 'mass_contact.page.inc',
);
return $items;
}