Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9165717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:58:18+00:00 2026-06-17T14:58:18+00:00

I want to add a button Save and add more to node add form

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:58:19+00:00Added an answer on June 17, 2026 at 2:58 pm

    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:

    • addmore.info
    • addmore.module

    Contents of addmore.info:

    name = "Add More"
    description = Create and Add More button on Child node forms
    package = Other
    core = 6.x
    

    Contents of addmore.module
    (Assumes that the machine name of the “Child” content type is “child”)

    <?php
    /**
     * Implementation of HOOK_form_alter
     *
     * For 'child' node forms, add a new button to the bottons array that submits
     * and saves the node, but redirects to the node/add/child form instead of to
     * the newly created node.
     */
    function addmore_form_alter(&$form, $form_state, $form_id) {
      if ($form_id == 'child_node_form') {
        $form['buttons']['save_and_add_more'] = array(
          '#type' => 'submit',
          '#value' => t('Save and add more'),
          '#weight' => 20,
          '#submit' => array(
            // Adds the existing form submit function from the regular "Save" button
            $form['buttons']['submit']['#submit'][0],
            // Add our custom function which will redirect to the node/add/child form
            'addmore_add_another',
          ),
        );
      }
    }
    
    /**
     * Custom function called when a user saves a "child" node using the "Save and
     * add more" button. Directs users to node/add/child instead of the newly
     * created node.
     */
    function addmore_add_another() {
      drupal_goto('node/add/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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add a click able button to a MKAnnotation as seen in
I want to add a UIViewController on my current UIView on a button click
i am jsgrid i want have implemented the add row button. when i click
I'm making my own minor mode for emacs. Now I want to add button
I want to add a button to JTabbedPane's title bar (similar to the 'open
I want to add Excel button below the html table, that gives an Excel
I want to add a button to each row of a column of an
I have a datagrid that I want to add a button/s to at runtime.
I have a grid, which I want to add a button at the top
I want to add row with remove button through javascript in html div formate.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.