You are here

function mvf_widget in Measured Value Field 6

Implementation of hook_widget().

File

./mvf.module, line 358
Measured Value Field module.

Code

function mvf_widget(&$form, &$form_state, $field, $items, $delta = 0) {
  return array(
    '#type' => $field['widget']['type'],
    '#default_value' => isset($items[$delta]) ? $items[$delta] : NULL,
  );
}