Active
Project:
Smart Node Links
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Jan 2013 at 20:11 UTC
Updated:
13 Jan 2013 at 07:21 UTC
Consider the following, current code:
if (isset($result['node'])) {
$nidobj = array_pop($result['node']);
drupal_goto('node/' . $nidobj->nid);
}
Is the following to replace the drupal_goto() any better for any reason? I think drupal_goto is server-side "redirect" and not really a client redirect, so net difference == ?
return node_page_view(entity_load('node', $nidobj->nid));
Comments
Comment #1
rolando.alevelbeyond commentedNot really sure if it makes a difference but check this out before you make any changes..
http://drupal.org/node/1553180