-> First create a folder named as myredirect on /sites/all/modules folder
-> Then creat following two file within myredirect folder
1. myredirect.module
function myredirect_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
if ($node->type == 'yourcontenttype') {
if ($op == 'insert') {
drupal_goto('yourcustompath');
}
}
}
2. myredirect.info
; $Id: myredirect.info,v 1.0 2012/10/04 17:42:28 Exp $
name = myredirect
description = this is my custom redirect module.
package = custom modules
core = 6.x
Thanks
sukant
No comments:
Post a Comment