You are here

function accordion_block_add_more_blocks in Accordion Blocks 7.3

Same name and namespace in other branches
  1. 7.2 accordion_blocks.module \accordion_block_add_more_blocks()

Submit handler for the "Add One More" button of a field form.

This handler makes changes to the form state. If the button was clicked with JS disabled, then the page is reloaded with the complete rebuilt form. If the button was clicked with JS enabled, then ajax_form_callback(), accordion_block_add_more_blocks_callback() to return just the changed part of the form.

1 string reference to 'accordion_block_add_more_blocks'
accordion_block_config_settings in ./accordion_blocks.module
Implements menu callback for the admin settings form for accordion_block

File

./accordion_blocks.module, line 359

Code

function accordion_block_add_more_blocks($form, &$form_state) {
  $form_state['accordion_blocks']++;
  $form_state['rebuild'] = TRUE;
}