You are here

function panels_goto in Panels 7.3

Same name and namespace in other branches
  1. 8.3 panels.module \panels_goto()
  2. 6.3 panels.module \panels_goto()

Perform a drupal_goto on a destination that may be an array like url().

2 calls to panels_goto()
_panels_edit in includes/display-edit.inc
Handle calling and processing of the form for editing display content.
_panels_edit_layout in includes/display-layout.inc
Handle calling and processing of the form for editing display layouts.

File

./panels.module, line 1986
Core functionality for the Panels engine.

Code

function panels_goto($destination) {
  if (!is_array($destination)) {
    return drupal_goto($destination);
  }
  else {

    // Prevent notices by adding defaults.
    $destination += array(
      'query' => NULL,
      'fragment' => NULL,
      'http_response_code' => NULL,
    );
    return drupal_goto($destination['path'], $destination['query'], $destination['fragment'], $destination['http_response_code']);
  }
}