You are here

function email_confirm_menu in Email Change Confirmation 7

Same name and namespace in other branches
  1. 5 email_confirm.module \email_confirm_menu()
  2. 6 email_confirm.module \email_confirm_menu()

Implements hook_menu().

File

./email_confirm.module, line 27
The Email Change Confirmation module.

Code

function email_confirm_menu() {
  $items = array();
  $items['user/change-mail'] = array(
    'title' => 'Change e-mail',
    'page callback' => 'email_confirm_user_change_mail',
    'access callback' => 'user_is_logged_in',
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/people/email_confirm'] = array(
    'title' => 'Email change confirmation settings',
    'description' => 'Configuration of confirmation email sent to users who attempt to change their email address.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'email_confirm_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}