You are here

function ajax_register_pass_ajax_callback in Ajax Login/Register 7.3

Ajax callback for user pass form.

1 string reference to 'ajax_register_pass_ajax_callback'
ajax_register_form_alter in ./ajax_register.module
Implements hook_form_alter().

File

./ajax_register.module, line 145

Code

function ajax_register_pass_ajax_callback() {
  $commands = array();
  if (!form_get_errors()) {
    $commands[] = ajax_command_replace('#user-pass', theme('status_messages'));
  }
  else {
    $commands[] = ajax_command_html('#ajax-register-pass-messages', theme('status_messages'));
  }
  return array(
    '#type' => 'ajax',
    '#commands' => $commands,
  );
}