function multiple_email_menu in Multiple E-mail Addresses 6
Same name and namespace in other branches
- 5 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 35 - multiple_email module file
Code
function multiple_email_menu() {
$items = array();
$items['admin/settings/multiple-email'] = array(
'title' => t('Multiple E-mail Settings'),
'description' => t('Control behavior of the Multiple E-mail Addresses module'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'multiple_email_admin_settings',
),
'access arguments' => array(
'administer users',
),
);
$items['user/%user/edit/email-addresses/view'] = array(
'title' => t('View E-mail Addresses'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'multiple_email_manage',
1,
),
'access callback' => '_multiple_email_access',
'access arguments' => array(
'pages',
1,
),
'file' => 'multiple_email_manage.inc',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['user/%user/edit/email-addresses/confirm/%multiple_email'] = array(
'title' => t('Confirm E-mail Address'),
'page callback' => 'multiple_email_confirm_page',
'page arguments' => array(
1,
5,
),
'access callback' => TRUE,
'file' => 'multiple_email_confirm_page.inc',
'type' => MENU_CALLBACK,
);
$items['user/%user/edit/email-addresses/confirm/%multiple_email/resend'] = array(
'title' => t('Confirm E-mail Address'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'multiple_email_confirm_page_resend',
1,
5,
),
'access callback' => '_multiple_email_access',
'access arguments' => array(
'confirm',
1,
5,
),
'file' => 'multiple_email_confirm_page.inc',
'type' => MENU_CALLBACK,
);
$items['user/%user/edit/email-addresses/primary/%multiple_email'] = array(
'title' => t('Make E-mail Primary Address'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'multiple_email_primary_form',
1,
5,
),
'access callback' => '_multiple_email_access',
'access arguments' => array(
'primary',
1,
5,
),
'file' => 'multiple_email_primary_page.inc',
'type' => MENU_CALLBACK,
);
$items['user/%user/edit/email-addresses/edit/%multiple_email'] = array(
'title' => t('Edit E-mail Address'),
'page callback' => 'multiple_email_edit_page',
'page arguments' => array(
1,
5,
),
'access callback' => '_multiple_email_access',
'access arguments' => array(
'edit',
1,
5,
),
'file' => 'multiple_email_edit_page.inc',
'type' => MENU_CALLBACK,
);
$items['user/%user/edit/email-addresses/delete/%multiple_email'] = array(
'title' => t('Delete E-mail Address'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'multiple_email_delete_form',
1,
5,
),
'access callback' => '_multiple_email_access',
'access arguments' => array(
'delete',
1,
5,
),
'file' => 'multiple_email_delete_page.inc',
'type' => MENU_CALLBACK,
);
return $items;
}