public function FlexiformBuilderEntityForm::form in Flexiform 7
Attach all fields for this entity to the form.
Overrides FlexiformBuilder::form
File
- includes/
builder/ entity_form.builder.inc, line 15 - Contains the FlexiformBuilderEntityForm Class
Class
- FlexiformBuilderEntityForm
- Flexiform Builder Class for stock entity forms.
Code
public function form($form, &$form_state) {
$form = parent::form($form, $form_state);
$form['#tree'] = TRUE;
field_attach_form($this->base_entity_type, $this->base_entity, $form, $form_state);
$this
->invoke($form, $form_state);
return $form;
}