drupal_goto() to send the user to a different page

/ Published in: PHP
Save to your folder(s)

Sends the user to a different Drupal page.

This issues an on-site HTTP redirect. The function makes sure the redirected URL is formatted correctly.

Copy this code and paste it in your HTML
  1. drupal_goto('node/'.get_local_node_nid($redirect_nid));

URL: http://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_goto/7

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.