Closed (fixed)
Project:
Manual Crop (old)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Mar 2013 at 17:21 UTC
Updated:
24 Apr 2013 at 15:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
esbenvb commentedHere's a patch.
IMPORTANT: When porting the patch, remember to include the correct author information as mentioned here: http://drupal.org/user/989064
Comment #2
rickmanelius commentedHi esbenvb. Any chance we can expose this variable in an admin form?
Comment #3
esbenvb commentedOf course that could be an option but there's no general admin interface for manualcrop as far as I know, and since this is a setting that's only supposed to be set once, by an administrator, it could easily be done in either an install hook, in a "drush vset" command, using strongarm or using features.
Comment #4
matthijsI agree with rickmanelius that there should be an interface setting for this. I reworked your patch (so I didn't use git attribution, but I mentioned you in the comment) to include a global settings form and pushed it to repository. Please note that I also moved the cache control setting to that new form.
Thanks for the patch!
Matthijs
Comment #6
capellicAfter this upgrade, I noticed that all available Manual Crop Image Style profiles were appearing in a select field for the images that have Manual Crop configured. In my situation, I only have one profile set per field, so the select should not appear. To fix this, I simply go to the edit form for the fields in question and and save them. And yes, I ran update.php.
Comment #7
esbenvb commented#4 Matthijs I'm glad to hear that you ported the patch.
BUT even though you reworked it and made a UI for setting the variable, I don't think you should skip the GIT attribution.
You can just apply my patch as it is, commit the changes with my attribution, and THEN do your changes to the GIT repo. Remember that for next time... It's not fatal or anything but I just think that it's nice to see my name on project commits that contains code I wrote.