You are here

function flexiform_prepare_entities in Flexiform 7

Prepare the entities needed for the form, either by creating or loading

Parameters

$flexiform: The form definition

$base_entity: The base entity of the form.

Return value

An array of entities keyed by namespace

File

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

Code

function flexiform_prepare_entities($flexiform, $base_entity) {
  $flexiform
    ->getBuilder($base_entity)
    ->prepareEntities();
}