Hi Matthijs,

I have a widget nearly (99%) the same as image widget, but manualcrop is not working because the widget name is different and is not possible to add mine to the Manual Crop supported widgets. It would be very helpful if there was a hook to add custom widgets for using manual crop.

Therefore I have created a patch with a manualcrop.api.php file and a drupal alter in manualcrop_supported_widgets.
Could you take a look at this? And is it possible to get this into Manual Crop?

I have attached 2 patches, one for 7.x-1.x-dev and one for 7.x-1.4.

Thanks!

Comments

matthijs’s picture

Status: Needs review » Fixed

Thanks for the patch, I've applied and committed it! Nice work!

Not that I've reworked your changes a bit to also have a none-alter hook, so now we have hook_manualcrop_supported_widgets() and hook_manualcrop_supported_widgets_alter().

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ericclaeren’s picture

Thanks Matthijs!