You are here

function username_check_menu in Username originality AJAX check 5

Same name and namespace in other branches
  1. 6 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($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'username_check/isunique',
      'type' => MENU_CALLBACK,
      'callback' => 'username_check_callback',
      'access' => user_access('access content'),
    );
    $items[] = array(
      'path' => 'admin/settings/username_check',
      'type' => MENU_NORMAL_ITEM,
      'title' => t('Username check'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'username_check_settings',
      ),
      'access' => user_access('administer site configuration'),
    );
  }
  return $items;
}