You are here

function hook_form_builder_types_alter in Form Builder 6

Modify fields and properties that are declared by other modules.

See also

hook_form_builder_types()

1 invocation of hook_form_builder_types_alter()
form_builder_get_form_type in includes/form_builder.api.inc
Get a list of all properties that are supported by a particular form type.

File

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

Code

function hook_form_builder_types_alter(&$types) {
  if (!empty($types['webform']['textfield']['properties'])) {

    // Add our new placeholder properties for the webform textfield component.
    $types['webform']['textfield']['properties'][] = 'placeholder';
  }
}