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.

3 calls 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?
path_breadcrumbs_ui_edit_form_ajax_callback in sites/all/modules/local_contrib/path_breadcrumbs/path_breadcrumbs_ui/path_breadcrumbs_ui.module
Ajax callback for path breadcrumbs EDIT form. Redirect user to breadcrumbs list when breadcrumb is updated.
_path_breadcrumbs_ui_add_form_finish_ajax_callback in sites/all/modules/local_contrib/path_breadcrumbs/path_breadcrumbs_ui/path_breadcrumbs_ui.module
Ajax callback for last step of breadcrumbs creating. Saves new path breadcrumb.

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,
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.