You are here

function flexiform_entity_configure_form in Flexiform 7

Form to Configure a Flexiform Entity.

1 string reference to 'flexiform_entity_configure_form'
FlexiformUIController::hook_menu in ./flexiform.admin.inc
Overrides hook_menu() defaults.

File

./flexiform.admin.inc, line 2102
Model type editing UI.

Code

function flexiform_entity_configure_form($form, &$form_state, $flexiform, $entity_namespace) {
  $form['#flexiform'] = $flexiform;
  $handler = $flexiform
    ->getBuilder()
    ->getEntityManager()
    ->getEntityHandler($entity_namespace);
  $form['#form_entity'] = $handler;
  $form += $handler
    ->configForm($form, $form_state);
  return $form;
}