Closed (fixed)
Project:
Image style flush
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2013 at 05:36 UTC
Updated:
6 Dec 2017 at 08:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tomb-2 commentedComment #2
Collins405 commentedThis is great, the only other suggestion I would make it to change line 171 from...
drupal_goto('admin/config/media/image-styles');to...
drupal_goto('admin/config/media/image-styles/flush');Otherwise the user hits an access denied page.
Comment #4
hargobindGreat idea. Thanks for the patch. And thanks @Collins405 for noticing the pitfall with the redirect -- I modified it to redirect the user to the homepage if they don't have access to "administer image styles". I also added an update which assigns the new permission to all roles that have the "administer image styles" permission.