You are here

function thunder_media_inline_entity_form_image_widget_process in Thunder 8.5

Same name and namespace in other branches
  1. 8.2 modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()
  2. 8.3 modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()
  3. 8.4 modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()
  4. 6.2.x modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()
  5. 6.0.x modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()
  6. 6.1.x modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()

Process function to hide 'Remove' button on image widget forms.

1 string reference to 'thunder_media_inline_entity_form_image_widget_process'
thunder_media_field_widget_image_focal_point_form_alter in modules/thunder_media/thunder_media.module
Implements hook_field_widget_WIDGET_ID_form_alter().

File

modules/thunder_media/thunder_media.module, line 117
Contains media related functions.

Code

function thunder_media_inline_entity_form_image_widget_process($element, FormStateInterface $form_state, $form) {
  if (isset($element['remove_button'])) {
    $element['remove_button']['#access'] = FALSE;
  }
  return $element;
}