You are here

function mvf_entityreference_field_settings_process in Measured Value Field 7

FAPI element process function.

Override form elements defined in entityreference native process function. Hide 'target_type' setting of entityreference subfield.

1 string reference to 'mvf_entityreference_field_settings_process'
mvf_field_settings_form in ./mvf.module
Implements hook_field_settings_form().

File

./mvf.module, line 1888
Define a field type of measured value.

Code

function mvf_entityreference_field_settings_process($form, &$form_state) {
  $form['target_type']['#access'] = FALSE;
  $form['target_type']['#value'] = 'units_unit';
  return $form;
}