You are here

function flexiform_wrapper in Flexiform 7

Form callback wrapper: fill out a flexiform.

Parameters

$flexiform: The flexiform being submitted by this form.

$base_entity: The base entity for this form.

See also

flexiform()

flexiform_simple()

1 string reference to 'flexiform_wrapper'
FlexiformDisplayBase::build in includes/flexiform.display.inc
Build the form ready for rendering.

File

includes/flexiform.flexiform.inc, line 51
flexiform.flexiform.inc Helper function for embedding the fields into the flexiform in an arbitrary order

Code

function flexiform_wrapper($flexiform, $base_entity) {
  $form_id = 'flexiform__' . $flexiform->form;
  return drupal_get_form($form_id, $flexiform, $base_entity);
}