function barcode_widget in Barcode 6.2
Same name and namespace in other branches
- 6 barcode.module \barcode_widget()
Implementation of hook_widget().
File
- ./
barcodefield.module, line 264
Code
function barcode_widget(&$form, &$form_state, $field, $items, $delta = 0) {
$element = array(
'#type' => $field['widget']['type'],
'#default_value' => isset($items[$delta]) ? $items[$delta] : '',
);
return $element;
}