You are here

function mvf_field_widget_form in Measured Value Field 7

Implements hook_field_widget_form().

File

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

Code

function mvf_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
  $element = array(
    '#type' => 'mvf_widget',
    '#field' => $field,
    '#instance' => $instance,
    '#delta' => $delta,
    '#langcode' => $langcode,
    '#items' => $items,
  ) + $element;
  return $element;
}