You are here

public function FlexiformBuilder::invoke in Flexiform 7

Invoke hooks to alter the build of this form.

6 calls to FlexiformBuilder::invoke()
FlexiformBuilderEntityForm::form in includes/builder/entity_form.builder.inc
Attach all fields for this entity to the form.
FlexiformBuilderEntityForm::formSubmit in includes/builder/entity_form.builder.inc
Submit the form.
FlexiformBuilderEntityForm::formValidate in includes/builder/entity_form.builder.inc
Validate the Fields
FlexiformBuilderFlexiform::form in includes/builder/flexiform.builder.inc
Build the form for this flexiform.
FlexiformBuilderFlexiform::formSubmit in includes/builder/flexiform.builder.inc
Submit the form.

... See full list

File

includes/flexiform.builder.inc, line 103
Specify builder classes for flexiforms.

Class

FlexiformBuilder
Base class for flexiform builders.

Code

public function invoke(&$form, &$form_state, $hook = '') {
  if (!empty($hook)) {
    $hooks = array(
      'flexiform_build_' . $hook,
      'flexiform_build_' . $this->flexiform->builder . '_' . $hook,
    );
  }
  else {
    $hooks = array(
      'flexiform_build',
      'flexiform_build_' . $this->flexiform->builder,
    );
  }
  drupal_alter($hooks, $form, $form_state, $this->flexiform);
}