function _username_check_load_resources in Username originality AJAX check 7
Same name and namespace in other branches
- 5 username_check.module \_username_check_load_resources()
- 6 username_check.module \_username_check_load_resources()
Load username_check resources.
1 call to _username_check_load_resources()
File
- ./
username_check.module, line 76 - Checks user name availability on registration page.
Code
function _username_check_load_resources($mode) {
$module_path = drupal_get_path('module', 'username_check');
drupal_add_css($module_path . '/username_check.css');
drupal_add_js($module_path . '/username_check.js');
drupal_add_js(array(
'usernameCheck' => array(
'ajaxUrl' => url('username_check/isunique', array(
'absolute' => TRUE,
)),
'delay' => variable_get('username_check_delay', 1),
),
), 'setting');
}