You are here

function flickrfield_field_widget_form in Flickr 7

Implements hook_field_widget_form().

File

field/flickrfield.module, line 87
Defines a Flickr field type.

Code

function flickrfield_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
  $element = array(
    '#type' => $instance['widget']['type'],
    '#default_value' => isset($items[$delta]) ? $items[$delta] : '',
  );
  return $element;
}