follow up #2009580: Replace theme() with drupal_render() in image module
Need convert theme('image_resize_summary', $variables) to drupal_render() function.
to test this code
- Go to the image styles admin area (admin/config/media/image_styles)
- Edit the thumbnail image style
- make sure it has a crop action (you may need to add one instead of scale)
- check that the preview of the image style (on the right) is rendering correctly
Comments
Comment #1
helga.cheberakha commentedWDG (Ukraine,Kharkov) want to implement this on CodeSprintUA.
Comment #2
helga.cheberakha commentedComment #3
samvel commentedPlease remove "," from the end
Comment #4
helga.cheberakha commentedComment #5
podarok#4 looks good
if bot happy - i`m happy
Comment #7
jeroent#4: drupal_remove_theme_image_module_for_theme_image_crop_summary-2010122-4.patch queued for re-testing.
Comment #9
jeroentreplace theme() with drupal_render in theme_image_crop_summary().
Comment #10
jeroentPatch #9 is wrong. This is the right patch.
Comment #11
thedavidmeister commentedPatch in #10 has trailing whitespace.
Comment #12
jeroentFixed whitespace.
Comment #13
eromero1 commentedEverything ran smoothly with the patch. The crop effect worked properly, and there were no observable errors
Comment #14
alexpottI don't get why this is not...
The other changes here look out-of-scope to me.
Comment #15
heddnLet's try this.
Comment #16
star-szr#variables won't work, see this code from theme():
However this should work:
Comment #17
heddnComment #19
star-szr#17: drupal-drupal_render_theme_image_crop_summary-2010122-17.patch queued for re-testing.
Comment #20
tsphethean commented#17 looks good to me.
Comment #21
alexpottCommitted aed78ff and pushed to 8.x. Thanks!
Comment #22.0
(not verified) commentedto test