You are here

function username_check_menu in Username originality AJAX check 6

Same name and namespace in other branches
  1. 5 username_check.module \username_check_menu()
  2. 7 username_check.module \username_check_menu()

Implementation of hook_menu().

File

./username_check.module, line 11
Checks user name availability on registration page.

Code

function username_check_menu() {
  $items = array();
  $items['username_check/isunique'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'username_check_callback',
    'access arguments' => array(
      'access content',
    ),
    'file' => 'username_check.unique.inc',
  );
  $items['admin/settings/username_check'] = array(
    'title' => 'Username check',
    'type' => MENU_NORMAL_ITEM,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'username_check_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'username_check.settings.inc',
  );
  return $items;
}