You are here

function dialog_user_ajax_form_submit in Dialog 7

Ajax submit handler for forms inside dialogs.

1 string reference to 'dialog_user_ajax_form_submit'
dialog_user_form_alter in modules/dialog_user/dialog_user.module
Implement hook_form_alter().

File

modules/dialog_user/dialog_user.module, line 108

Code

function dialog_user_ajax_form_submit(&$form, &$form_state) {
  if (isset($form_state['redirect'])) {
    $commands = array();
    $commands[] = dialog_command_redirect($form_state['redirect']);
    ajax_render($commands);
  }
}