You are here

function multiple_email_menu in Multiple E-mail Addresses 7

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

Implements hook_menu().

File

./multiple_email.module, line 40
multiple_email module file

Code

function multiple_email_menu() {
  $items = array();
  $items['admin/config/people/multiple-email'] = array(
    'title' => 'Multiple E-mails',
    'description' => '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 multiple emails',
    ),
  );
  $items['user/%user/edit/email-addresses/view'] = array(
    'title' => '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',
    'load arguments' => array(
      '%map',
      '%index',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['user/%user/edit/email-addresses/confirm/%multiple_email'] = array(
    'title' => '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' => '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' => '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' => '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' => '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;
}