You are here

function hook_form_builder_element_types_alter in Form Builder 7

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

Modify fields and properties that are declared by other modules.

See also

hook_form_builder_element_types()

1 invocation of hook_form_builder_element_types_alter()
FormBuilderLoader::getElementTypeInfo in ./form_builder.classes.inc

File

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

Code

function hook_form_builder_element_types_alter(&$types, $form_type, $form_id) {
  if ($form_type == 'webform') {

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