function linkimagefield_widget in Link Image Field 6
Same name and namespace in other branches
- 5 linkimagefield.module \linkimagefield_widget()
Implementation of CCK's hook_widget
_state
Parameters
array $form:
array $field:
array $items:
integer $delta:
Return value
array
1 string reference to 'linkimagefield_widget'
- linkimagefield_init in ./
linkimagefield.module - Implementation of hook_init().
File
- ./
linkimagefield.module, line 171 - Defines a link image field type.
Code
function linkimagefield_widget(&$form, &$form_state, $field, $items, $delta = 0) {
if (empty($items[$delta])) {
$items[$delta] = array(
'url' => '',
);
}
// Delegate to ImageField
$element = imagefield_widget($form, $form_state, $field, $items, $delta);
return $element;
}