You are here

function exif_field_widget_form in Exif 7

Implementation of hook_field_widget_form().

File

./exif.module, line 623

Code

function exif_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
  $form['#attached']['css'][] = drupal_get_path('module', 'exif') . '/exif.css';
  $element_info = element_info($field['type']);
  $element += array(
    '#type' => '#hidden',
    '#value' => '',
    '#process' => array_merge(array(
      'exif_field_readonly_widget_process',
    )),
  );
  return $element;
}