You are here

function supersized_field_widget_form in Supersized 7

Same name and namespace in other branches
  1. 8 supersized.field.inc \supersized_field_widget_form()

Implements hook_field_widget_form().

File

./supersized.field.inc, line 477
Implement an image field, based on the file module's file field.

Code

function supersized_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'][] = 'supersized_field_widget_process';
  }
  return $elements;
}