function backgroundfield_widget in BackgroundField 6
1 string reference to 'backgroundfield_widget'
File
- ./
backgroundfield.module, line 135
Code
function backgroundfield_widget(&$form, &$form_state, $field, $items, $delta = 0) {
if (!is_array($items[$delta]['data'])) {
$items[$delta]['data'] = unserialize($items[$delta]['data']);
}
$element = filefield_widget($form, $form_state, $field, $items, $delta);
$element['#type'] = 'imagefield_widget';
return $element;
}