Commit 8a9f7b6d authored by webchick's avatar webchick

Issue #1079214 follow-up by pillarsdotnet: Adjustment to drupal_goto() doc example.

parent 3d299c46
......@@ -632,8 +632,8 @@ function drupal_encode_path($path) {
* user/login and override the default redirection so that the user is
* redirected to a specific path after logging in:
* @code
* $destination = array('destination' => "node/$node->nid");
* l(t('Log in'), array('@login' => url('user/login', array('query' => array($destination)))));
* $query = array('destination' => "node/$node->nid");
* $link = l(t('Log in'), 'user/login', array('query' => $query));
* @endcode
*
* Drupal will ensure that messages set by drupal_set_message() and other
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment