You are here

function imageinfo_cache_widget_process in Imageinfo Cache 7.3

An element #process callback for the imagefield.

Parameters

array $element: Element array.

Return value

array Returns back the element array.

1 string reference to 'imageinfo_cache_widget_process'
imageinfo_cache_field_widget_form_alter in ./imageinfo_cache.module
Implements hook_field_widget_form_alter().

File

./imageinfo_cache.module, line 420
Imageinfo Cache module.

Code

function imageinfo_cache_widget_process(array $element) {

  // Adds in another #submit callback.
  if (isset($element['upload_button'])) {
    $element['upload_button']['#submit'][] = 'imageinfo_cache_file_submit';
  }
  if (isset($element['add_more'])) {
    $element['add_more']['#submit'][] = 'imageinfo_cache_file_submit';
  }
  return $element;
}