function username_check_menu in Username originality AJAX check 7
Same name and namespace in other branches
- 5 username_check.module \username_check_menu()
- 6 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['username_check/isuniqueprofile'] = array(
'type' => MENU_CALLBACK,
'page callback' => 'username_check_profile_callback',
'access arguments' => array(
'access content',
),
'file' => 'username_check.unique.inc',
);
$items['username_check/isuniquemail'] = array(
// TODO: find a way to block use of this by hackers/spammers to search for email addys
'type' => MENU_CALLBACK,
'page callback' => 'username_check_mail_callback',
'access arguments' => array(
'access content',
),
'file' => 'username_check.unique.inc',
);
$items['admin/config/system/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.admin.inc',
);
return $items;
}