You are here

function exif_field_readonly_widget_process in Exif 7

callback function call when a element of type exif_readonly is used. handler added to element_info in exif_field_widget_form. handle image metadata widget fields

Parameters

unknown_type $element:

unknown_type $form_state:

unknown_type $form:

See also

exif_field_widget_form

1 string reference to 'exif_field_readonly_widget_process'
exif_field_widget_form in ./exif.module
Implementation of hook_field_widget_form().

File

./exif.module, line 732

Code

function exif_field_readonly_widget_process($element, &$form_state, $form) {
  $instance = field_widget_instance($element, $form_state);
  $settings = $instance['settings'];
  $widget_settings = $instance['widget']['settings'];
  $element['tid'] = array(
    '#type' => 'hidden',
    '#value' => '',
  );
  $element['value'] = array(
    '#type' => 'hidden',
    '#value' => '',
  );
  $element['timezone'] = array(
    '#type' => 'hidden',
    '#value' => '',
  );
  $element['value2'] = array(
    '#type' => 'hidden',
    '#value' => '',
  );
  return $element;
}