You are here

function multiple_email_menu_alter in Multiple E-mail Addresses 7

Same name and namespace in other branches
  1. 6 multiple_email.module \multiple_email_menu_alter()
  2. 2.x multiple_email.module \multiple_email_menu_alter()

Implements hook_menu_alter().

Actual menu entry is defined by hook_user category op.

See also

multiple_email_user()

File

./multiple_email.module, line 171
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'];
  }
}