You are here

function imageeditor_filefield_source_imageeditor_process in Image Editor 6

1 string reference to 'imageeditor_filefield_source_imageeditor_process'
imageeditor_filefield_sources_info in ./imageeditor.module

File

./imageeditor.module, line 1082
Allows online editing of images using different image editing services.

Code

function imageeditor_filefield_source_imageeditor_process($element, &$form_state, $form) {
  $field = content_fields($element['#field_name'], $element['#type_name']);
  if ($field['widget']['type'] != 'imagefield_widget') {
    return $element;
  }
  $element['imageeditor'] = array(
    '#type' => 'markup',
    '#value' => theme('imageeditor_widget', 'new', $field['widget'], $element['#field_name'], $element['#delta']),
    '#prefix' => '<div class="filefield-source filefield-source-imageeditor">',
    '#suffix' => '</div>',
  );
  return $element;
}