1 image.field.inc | _image_field_widget_alt_pre_render($element) |
Pre-render callback for alt field.
Mark a field as #required for display only.
File
- core/
modules/ image/ image.field.inc, line 587 - Implement an image field, based on the file module's file field.
Code
function _image_field_widget_alt_pre_render($element) {
$element['#required'] = TRUE;
return $element;
}