Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Has anyone tried to use Imagefield Crop or Manual Crop modules with Editable Views? It sure would be nice if Imagefield Crop would work properly and save. Alternatively, it would be great if the Manual Crop selection saved.
Comments
Comment #1
danielphenry CreditAttribution: danielphenry commentedSame issue with the maxlength module. I suspect the two are related. Probably something preventing js files from loading on the view.
Comment #2
danielphenry CreditAttribution: danielphenry commentedSo the issue with maxlength is that hook_field_attach_form is not being called.
I'm not sure how to generalize this but I found that if I manually call it around line 283 of editableviews_plugin_style_row_edit_table.inc I have all the information necessary for the hook to be successful.
This is not a good solution but it may point someone in the write direction:
I think you could do the same thing with media crop module as a hack to get this working until someone comes up with a more general way to do this.
Comment #3
joachim CreditAttribution: joachim commentedThere is an API function in Field module to invoke a field hook in the module that provides the field type. That's what you need here to generalize.