function ajax_register_register_ajax_callback in Ajax Login/Register 7.3
Ajax callback for user register form.
1 string reference to 'ajax_register_register_ajax_callback'
- ajax_register_form_alter in ./
ajax_register.module - Implements hook_form_alter().
File
- ./
ajax_register.module, line 131
Code
function ajax_register_register_ajax_callback() {
$commands = array();
if (!form_get_errors()) {
$commands[] = ajax_command_replace('#user-register-form', theme('status_messages'));
}
else {
$commands[] = ajax_command_html('#ajax-register-reg-messages', theme('status_messages'));
}
return array(
'#type' => 'ajax',
'#commands' => $commands,
);
}