redirectedit
Component ID
1783542
Component name
redirectedit
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
redirect.info---------------
; $Id$
name = Redirect to edit
description = Redirect user to add new node after saving a new node or updating an existing node.
core = 6.x
version = 6.x-1.0
redirectedit.module-------------
global $base_url;
function redirectedit_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
switch ($op) {
case 'update':
if($node->type == 'your_node_type') {
$_REQUEST['destination'] ="yoururl";
break;
}
case 'insert':
if($node->type == 'your_node_type') {
$_REQUEST['destination'] = "yoururl";
break;
}
if($node->type == 'your_node_type') {
$_REQUEST['destination'] = "yoururl";
break;
}
}
}
Thanks:
Mtoag Technologies
mtoag.com
