I want to add a button “Save and add more” to node add form drupal 6.
on click on this button page should redirect to same node add form after saving node.
I have a content type child to add Child, user may have more than one child so if he/she want to add another child he/she will click on “Save and add more” and user have only one child he/she will click on “Save”
so basically only redirection is to be change for new button.
I want to add a button Save and add more to node add form
Share
You’ll need to create a simple module containing two files to do this. Create a new directory “addmore” in your /sites/all/modules/custom folder (create that folder if it doesn’t exist) and create the following files in that directory:
Contents of addmore.info:
Contents of addmore.module
(Assumes that the machine name of the “Child” content type is “child”)
Once you have created these files, navigate to your modules page and enable the “Add More” module.
That’s it. You’ll see a new “Save and add more” button which does just that on Child node creation and edit forms.