function image_widget_cropfield_widget_info_alter in Image Widget Crop 8
Same name and namespace in other branches
- 8.2 image_widget_crop.module \image_widget_cropfield_widget_info_alter()
Implements hook_field_widget_info_alter().
File
- ./
image_widget_crop.module, line 36 - Contains image_widget_crop.module.
Code
function image_widget_cropfield_widget_info_alter(array &$info) {
// Let a new field type re-use an existing widget.
$info['image_image']['field_types'][] = 'image_widget_crop';
}