By john.karahalis on
By default, after a user creates a node he is displayed the node he just created.
Is there a way, either by a module or by hacking Drupal, to redirect a user to a different page (say the site's homepage) after he creates the node?
Comments
hook_nodeapi
Hi
you can write drupal_goto() function in case : 'insert' in _nodeapi hook in your module,
please see:
http://api.drupal.org/api/function/hook_nodeapi/6
http://api.drupal.org/api/function/drupal_goto/6
--
Kuldip Gohil
Software Engineer - Global Software Consulting (Gloscon)
1-888-DRUPAL-9 (378-7259)
http://www.gloscon.com
This is not for a module I
This is not for a module I created. I basically want to change the default behavior of Drupal.
Would I need to edit the hook_nodeapi and/or drupal_goto functions of existing Drupal code?
Thanks alot for the help by the way.