function thunder_media_inline_entity_form_image_widget_process in Thunder 8.3
Same name and namespace in other branches
- 8.5 modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()
- 8.2 modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()
- 8.4 modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()
- 6.2.x modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()
- 6.0.x modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_image_widget_process()
- 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;
}