Full ELMS Learning Network documentation
function ctools_ajax_command_redirect
cis7 ajax.inc | ctools_ajax_command_redirect($url, $delay = 0, $options = array()) |
cle7 ajax.inc | ctools_ajax_command_redirect($url, $delay = 0, $options = array()) |
elmsmedia7 ajax.inc | ctools_ajax_command_redirect($url, $delay = 0, $options = array()) |
icor7 ajax.inc | ctools_ajax_command_redirect($url, $delay = 0, $options = array()) |
meedjum_blog7 ajax.inc | ctools_ajax_command_redirect($url, $delay = 0, $options = array()) |
mooc7 ajax.inc | ctools_ajax_command_redirect($url, $delay = 0, $options = array()) |
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.
1 call to ctools_ajax_command_redirect()
- ctools_ajax_sample_login_success in sites/
all/ modules/ ulmus/ ctools/ ctools_ajax_sample/ ctools_ajax_sample.module - Post-login processor: should we go to the user account or stay in place?
File
- sites/
all/ modules/ ulmus/ ctools/ includes/ ajax.inc, line 83 - Extend core AJAX with some of our own stuff.
Code
function ctools_ajax_command_redirect($url, $delay = 0, $options = array()) {
ctools_add_js('ajax-responder');
return array(
'command' => 'redirect',
'url' => url($url, $options),
'delay' => $delay,
);
}