function linkimagefield_field_widget_form in Link Image Field 7
Implements hook_field_widget_form().
File
- ./
linkimagefield.module, line 202 - Defines a link image field type.
Code
function linkimagefield_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
$elements = image_field_widget_form($form, $form_state, $field, $instance, $langcode, $items, $delta, $element);
foreach (element_children($elements) as $delta) {
$elements[$delta]['#process'][] = 'linkimagefield_widget_process';
}
return $elements;
}