You are here

function relation_add_field_instance_settings_form in Relation add 7

Implements hook_field_instance_settings_form().

File

./relation_add.module, line 369
Relation Add module file.

Code

function relation_add_field_instance_settings_form($field, $instance) {

  // 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 in which we actually have access
  // to the form state.
  $form = array(
    '#type' => 'container',
    '#process' => array(
      '_relation_add_field_instance_settings_form',
    ),
    '#element_validate' => array(
      '_relation_add_field_instance_settings_validate',
    ),
    '#field' => $field,
    '#instance' => $instance,
  );
  return $form;
}