You are here

function hook_form_builder_save in Form Builder 6

Same name and namespace in other branches
  1. 7.2 form_builder.api.php \hook_form_builder_save()
  2. 7 form_builder.api.php \hook_form_builder_save()

Take a form builder array and save changes permanently.

1 function implements hook_form_builder_save()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

form_builder_examples_form_builder_save in examples/form_builder_examples.module
Implementation of hook_form_builder_save().
1 invocation of hook_form_builder_save()
form_builder_save_form in includes/form_builder.api.inc
Execute the save methods for a form array.

File

./form_builder.api.php, line 260
These are the hooks that are invoked by Form Builder.

Code

function hook_form_builder_save(&$form, $form_type, $form_id) {
  if ($form_type == 'node') {
    foreach (element_children($form) as $key) {
      if (isset($form[$key]['#form_builder']['element_id'])) {

        // Save settings for this element.
      }
    }
  }
}