1 entityreference.module entityreference_field_settings_form($field, $instance, $has_data)

Implements hook_field_settings_form().

File

core/modules/entityreference/entityreference.module, line 353
Entityreference primary module file.

Code

function entityreference_field_settings_form($field, $instance, $has_data) {
  // The field settings infrastructure is not AJAX enabled by default,
  // because it doesn't pass over the $form_state.
  // Build the whole form into a #process which has access to the form state.
  $form = array(
    '#type' => 'container',
    '#attached' => array(
      'css' => array(backdrop_get_path('module', 'entityreference') . '/css/entityreference.admin.css'),
    ),
    '#process' => array(
      '_entityreference_field_settings_process',
      '_entityreference_field_settings_ajax_process',
    ),
    '#element_validate' => array('_entityreference_field_settings_validate'),
    '#field' => $field,
    '#instance' => $instance,
    '#has_data' => $has_data,
  );
  return $form;
}