You are here

function user_email_verification_menu in User email verification 7

Implements hook_menu().

File

./user_email_verification.module, line 251
This module allows you to have e-mail verification and in meanwhile allowing the users to type their own passwords. If they do not verify their accounts in a certain time interval the user will be blocked.

Code

function user_email_verification_menu() {
  $items['user/verify'] = array(
    'title' => 'Request new e-mail verification',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'user_email_verification_request',
    ),
    'access callback' => TRUE,
    'type' => MENU_LOCAL_TASK,
    'file' => 'user_email_verification.admin.inc',
  );
  $items['user/email-verify/%/%/%'] = array(
    'title' => 'Verify user e-mail',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'user_email_verification_verify',
      2,
      3,
      4,
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'file' => 'user_email_verification.admin.inc',
  );
  $items['user/email-verify-extended/%/%/%'] = array(
    'title' => 'Verify user e-mail',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'user_email_verification_verify_extended',
      2,
      3,
      4,
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'file' => 'user_email_verification.admin.inc',
  );
  return $items;
}