You are here

function eck_entity_reference_property_config_form in Entity Construction Kit (ECK) 7.3

Configuration form for behaviors.

1 string reference to 'eck_entity_reference_property_config_form'
entity_reference.inc in plugins/property_behavior/entity_reference.inc

File

plugins/property_behavior/entity_reference.inc, line 16

Code

function eck_entity_reference_property_config_form() {
  $entity_types = EntityType::loadAll();
  $options = array();
  foreach ($entity_types as $et) {
    $options[$et->name] = $et->label;
  }
  $form['entity_type'] = array(
    '#type' => 'radios',
    '#options' => $options,
    '#required' => TRUE,
  );
  return $form;
}