You are here

function email_confirm_menu in Email Change Confirmation 5

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

Implementation of hook_menu().

File

./email_confirm.module, line 20

Code

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