I've done a custom module to generate some forms. There is a image field present. I would like to add cropping functionality in image field.
I've seen that is very interesting the Imagefield Crop module. I would like to use it in my code.
So, my question is: Is there any way to add this module functionality into my image field?
This is my code:
$form['imagen'] = array( '#title' => t('Image'), '#type' => 'managed_file', '#upload_validators' => array('file_validate_extensions' => array('jpeg jpg png gif')), '#upload_location' => 'public://', '#progress_indicator' => 'throbber', '#status' => FILE_STATUS_PERMANENT, '#progress_message' => 'One moment while we save your file...', );
It is necessary for our company to generate the forms in a custom module, because we need to process data in a special way, that with drupal content type is not possible.
So, I feel totally lost. It is posible to do something like a reference or something similar to use image_crop??
Thank you in advanced.