You are here

function dialog_command_redirect in Dialog 7

Same name and namespace in other branches
  1. 7.2 includes/dialog.commands.inc \dialog_command_redirect()

Force a client-side redirect.

Parameters

$path: The url to be redirected to.

$options: Any additional options for the URL.

1 call to dialog_command_redirect()
dialog_user_ajax_form_submit in modules/dialog_user/dialog_user.module
Ajax submit handler for forms inside dialogs.

File

./dialog.module, line 211
The Dialog module provides an API for displaying and interacting with jQuery UI Dialog modals.

Code

function dialog_command_redirect($path, $options = array()) {
  $options['absolute'] = TRUE;
  return array(
    'command' => 'dialog_redirect',
    'url' => url($path, $options),
  );
}