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