function multiple_email_menu in Multiple E-mail Addresses 5
Same name and namespace in other branches
- 6 multiple_email.module \multiple_email_menu()
- 7 multiple_email.module \multiple_email_menu()
- 2.x multiple_email.module \multiple_email_menu()
Implementation of hook_menu()
Parameters
boolean $may_cache:
Return value
array
File
- ./
multiple_email.module, line 81 - multiple_email module file
Code
function multiple_email_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/multiple-email',
'title' => t('Multiple Email Settings'),
'description' => t('Control behavior of the Multiple Email Addresses module'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'multiple_email_admin_settings',
),
'access' => user_access('administer site configuration'),
);
$items[] = array(
'path' => 'my-email-addresses',
'title' => t('My Email Addresses'),
'description' => t('Manage the email addresses associated with your account'),
'callback' => 'multiple_email_addresses_page',
'type' => MENU_NORMAL_ITEM,
'access' => user_access('multiple emails'),
);
$items[] = array(
'path' => 'my-email-addresses/add',
'title' => t('Add Email Address'),
'callback' => 'multiple_email_add_page',
'type' => MENU_CALLBACK,
'access' => user_access('multiple emails'),
);
$items[] = array(
'path' => 'my-email-addresses/delete',
'title' => t('Delete Email Address'),
'callback' => 'multiple_email_delete_page',
'type' => MENU_CALLBACK,
'access' => user_access('multiple emails'),
);
$items[] = array(
'path' => 'my-email-addresses/make-primary',
'title' => t('Make Email My Primary Address'),
'callback' => 'multiple_email_primary_page',
'type' => MENU_CALLBACK,
'access' => user_access('multiple emails'),
);
$items[] = array(
'path' => 'my-email-addresses/confirm',
'title' => t('Confirm Email Address'),
'callback' => 'multiple_email_confirm_page',
'type' => MENU_CALLBACK,
'access' => user_access('multiple emails'),
);
}
return $items;
}