You are here

function serial_field_widget_form in Serial Field 7

Implements hook_field_widget_form().

File

./serial.module, line 172
The Serial module main file.

Code

function serial_field_widget_form(array &$form, array &$form_state, array $field, array $instance, $langcode, array $items, $delta, array $element) {
  $element['#type'] = 'hidden';
  if (isset($items[$delta]['value'])) {
    $element['#default_value'] = $items[$delta]['value'];
  }
  return array(
    'value' => $element,
  );
}