You are here

function hook_form_builder_save in Form Builder 7

Same name and namespace in other branches
  1. 6 form_builder.api.php \hook_form_builder_save()
  2. 7.2 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()
FormBuilderFormBase::saveToStorage in ./form_builder.classes.inc

File

./form_builder.api.php, line 309
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.
      }
    }
  }
}