You are here

function form_builder_load_form in Form Builder 6

Same name and namespace in other branches
  1. 7 includes/form_builder.api.inc \form_builder_load_form()

Loader function to retrieve a form builder configuration array.

Parameters

$form_type: The type of form being edited. Usually the name of the providing module.

$form_id: The unique identifier for the form being edited with the type.

2 calls to form_builder_load_form()
form_builder_cache_difference in includes/form_builder.cache.inc
Compare the cached form with the original and return all changed elements.
form_builder_interface in includes/form_builder.admin.inc
Main form building interface. Can be used as a menu callback.

File

includes/form_builder.api.inc, line 308
form_builder.api.inc Universally used API functions within the Form builder module.

Code

function form_builder_load_form($form_type, $form_id) {
  $form = module_invoke_all('form_builder_load', $form_type, $form_id);
  drupal_alter('form_builder_load', $form, $form_type, $form_id);

  // Convert the form array keys to #key properties for editing.
  return form_builder_add_default_properties($form, $form_type);
}