Back to the original node after the creation of the related node
josepita - July 7, 2008 - 12:17
| Project: | Nodereferrer Create |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When I do click on the reference node Tab and
I've finished the creation of the related node I
would like to come back to the node that I was
originaly creating...
Thanks

#1
Hello,
I've added :
'query' => 'destination=node/'.arg(1),
to the menu created in the module.
<?phpif (node_access('create', $reftype)) {
$items[] = array(
'path' => 'node/'.arg(1).'/add/'.substr($name, strlen('field_')),
+ 'query' => 'destination=node/'.arg(1),
'title' => $field['widget']['title'],
'type' => MENU_LOCAL_TASK,
'callback' => 'nodereferrer_create_add',
'callback arguments' => array($field, $node),
'weight' => 10,
);
?>
Don't know how to post a correct patch.
HTH,
Fossie