install_goto

install_goto($path)

Sends the user to a different installer page.

This issues an on-site HTTP redirect. Messages (and errors) are erased.

Parameters

$path: An installer path.

File

core/includes/install.inc, line 846
API functions for installing modules and themes.

Code

function install_goto($path) {
  global $base_url;
  $headers = array(
    // Not a permanent redirect.
    'Cache-Control' => 'no-cache',
  );
  $response = new RedirectResponse($base_url . '/' . $path, 302, $headers);
  $response->send();
}
doc_Drupal
2016-10-29 09:21:01
Comments
Leave a Comment

Please login to continue.