function bat_unit_bundle_form_submit in Booking and Availability Management Tools for Drupal 7
Form API submit callback for the unit bundle form.
1 string reference to 'bat_unit_bundle_form_submit'
- bat_unit_bundle_form in modules/
bat_unit/ bat_unit_bundle.admin.inc - Generates the unit bundle editing form.
File
- modules/
bat_unit/ bat_unit_bundle.admin.inc, line 106 - BatUnitBundle editing UI.
Code
function bat_unit_bundle_form_submit($form, &$form_state) {
$unit_bundle = entity_ui_form_submit_build_entity($form, $form_state);
// Save and go back.
$unit_bundle
->save();
$form_state['unit_bundle'] = $unit_bundle;
$form_state['redirect'] = 'admin/bat/config/unit-bundles';
}