function merci_more_choices_submit in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
Same name and namespace in other branches
- 6.2 includes/api.inc \merci_more_choices_submit()
- 7.2 includes/api.inc \merci_more_choices_submit()
Submit handler to add more choices to a reservation form. This handler is used when javascript is not available. It makes changes to the form state and the entire form is rebuilt during the page reload.
1 string reference to 'merci_more_choices_submit'
- merci_form in ./
merci.module - Implementation of hook_form().
File
- ./
merci.module, line 926 - MERCI - Managed Equipment Reservation Checkout and Inventory
Code
function merci_more_choices_submit($form, &$form_state) {
// Set the form to rebuild and run submit handlers.
node_form_submit_build_node($form, $form_state);
// Make the changes we want to the form state.
if ($form_state['values']['merci_more']) {
$form_state['choice_count'] = count($form_state['values']['choice']) + 5;
}
}