function multiple_email_menu_alter in Multiple E-mail Addresses 6
Same name and namespace in other branches
- 7 multiple_email.module \multiple_email_menu_alter()
- 2.x multiple_email.module \multiple_email_menu_alter()
Implementation of hook_menu_alter().
Actual menu entry is defined by hook_user category op.
See also
File
- ./
multiple_email.module, line 167 - multiple_email module file
Code
function multiple_email_menu_alter(&$items) {
if (!empty($items['user/%user_category/edit/email-addresses'])) {
$items['user/%user_category/edit/email-addresses'] = array(
'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',
'file path' => drupal_get_path('module', 'multiple_email'),
) + $items['user/%user_category/edit/email-addresses'];
}
}