function ctools_ajax_command_redirect in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/ajax.inc \ctools_ajax_command_redirect()
Force a client-side redirect.
Parameters
$url: The url to be redirected to. This can be an absolute URL or a Drupal path.
$delay: A delay before applying the redirection, in milliseconds.
$options: An array of options to pass to the url() function.
$new_window: A bool to determine if the URL should open in a new window.
1 call to ctools_ajax_command_redirect()
- ctools_ajax_sample_login_success in ctools_ajax_sample/
ctools_ajax_sample.module - Post-login processor: should we go to the user account or stay in place?
File
- includes/
ajax.inc, line 420 - Utilize the CTools AJAX responder.
Code
function ctools_ajax_command_redirect($url, $delay = 0, $options = array(), $new_window = FALSE) {
return array(
'command' => 'redirect',
'url' => url($url, $options),
'delay' => $delay,
'new_window' => $new_window,
);
}