You are here

function flexiform_overview_form in Flexiform 7

Form builder function for the flexiform overview form.

2 string references to 'flexiform_overview_form'
FlexiformUIController::hook_forms in ./flexiform.admin.inc
Provides definitions for implementing hook_forms().
FlexiformUIController::hook_menu in ./flexiform.admin.inc
Overrides hook_menu() defaults.

File

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

Code

function flexiform_overview_form($form, &$form_state, $entity_type = 'flexiform', $base_entity = '', $base_entity_bundle = '') {

  // Build a conditions array.
  $conditions = array();
  if (!empty($base_entity)) {
    $conditions['base_entity'] = $base_entity;
  }
  if (!empty($base_entity) && !empty($base_entity_bundle)) {
    $base_entity_bundle = field_extract_bundle($base_entity, $base_entity_bundle);
    $conditions['base_entity_bundle'] = $base_entity_bundle;
  }
  return entity_ui_controller($entity_type)
    ->overviewForm($form, $form_state, $conditions);
}