updated context, metatag, imagestyleflush, browscap
This commit is contained in:
@@ -1,37 +1,49 @@
|
||||
|
||||
Image style flush
|
||||
==================
|
||||
|
||||
This module will allow Drupal to flush all image styles at once or flush each image style individually right from administrative interface.
|
||||
This module will allow Drupal to flush all image styles at once or flush each
|
||||
individual image style right from the administrative interface.
|
||||
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
- Flush all image styles
|
||||
- Flush each image style individually
|
||||
- Flush each individual image style
|
||||
|
||||
This module was written by Stepan Kuzmin.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
The image (core) module.
|
||||
|
||||
|
||||
Install
|
||||
-------
|
||||
|
||||
1) Copy the imagestyleflush folder to the modules folder in your installation. Usually
|
||||
this is sites/all/modules.
|
||||
1) Copy the imagestyleflush folder to the modules folder in your installation.
|
||||
Usually this is sites/all/modules.
|
||||
Or use the UI and install it via admin/modules/install.
|
||||
|
||||
2) In your Drupal site, enable the module under Administration -> Modules
|
||||
(/admin/modules).
|
||||
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
You can flush image styles under Administration -> Configuration -> Media -> Image styles
|
||||
You can flush image styles under Administration -> Configuration -> Media
|
||||
-> Image styles
|
||||
|
||||
|
||||
Known problems
|
||||
--------------
|
||||
|
||||
Private file image styles can't be flushed with this module.
|
||||
|
||||
|
||||
Credit
|
||||
------
|
||||
|
||||
This module was written by Stepan Kuzmin and is maintained by Hargobind Khalsa.
|
||||
|
@@ -1,13 +1,12 @@
|
||||
name = Image style flush
|
||||
description = Flush image styles in Drupal 7.
|
||||
description = Adds the ability to flush image styles.
|
||||
package = Media
|
||||
core = 7.x
|
||||
Image styles
|
||||
configure = admin/config/media/image-styles
|
||||
|
||||
; Information added by drupal.org packaging script on 2013-05-21
|
||||
version = "7.x-1.2"
|
||||
; Information added by Drupal.org packaging script on 2015-11-07
|
||||
version = "7.x-1.3"
|
||||
core = "7.x"
|
||||
project = "imagestyleflush"
|
||||
datestamp = "1369122408"
|
||||
datestamp = "1446884340"
|
||||
|
||||
|
@@ -48,7 +48,7 @@ function imagestyleflush_image_style_list($variables) {
|
||||
$rows = array();
|
||||
foreach ($styles as $style) {
|
||||
$row = array();
|
||||
$row[] = l($style['name'], 'admin/config/media/image-styles/edit/' . $style['name']);
|
||||
$row[] = l($style['label'], 'admin/config/media/image-styles/edit/' . $style['name']);
|
||||
$link_attributes = array(
|
||||
'attributes' => array(
|
||||
'class' => array('image-style-link'),
|
||||
@@ -79,7 +79,7 @@ function imagestyleflush_image_style_list($variables) {
|
||||
$rows[] = array(array(
|
||||
'colspan' => 4,
|
||||
'data' => t('There are currently no styles. <a href="!url">Add a new one</a>.', array('!url' => url('admin/config/media/image-styles/add'))),
|
||||
));
|
||||
));
|
||||
}
|
||||
|
||||
return theme('table', array('header' => $header, 'rows' => $rows));
|
||||
@@ -103,7 +103,7 @@ function imagestyleflush_form($form, &$form_state, $style = NULL) {
|
||||
'#value' => $style['name'],
|
||||
),
|
||||
),
|
||||
t('Are you sure you want to flush @style image style?', array('@style' => $style['name'])),
|
||||
t('Are you sure you want to flush the %style image style?', array('%style' => $style['label'])),
|
||||
'admin/config/media/image-styles',
|
||||
t('This action cannot be undone.'),
|
||||
t('Flush'), t('Cancel')
|
||||
@@ -151,10 +151,10 @@ function imagestyleflush_form_submit($form, &$form_state) {
|
||||
*/
|
||||
function imagestyleflush_batch_finished($success, $results, $operations) {
|
||||
if ($success) {
|
||||
drupal_set_message(t('Image styles was successfully flushed.'));
|
||||
drupal_set_message(t('Image styles were successfully flushed.'));
|
||||
}
|
||||
else {
|
||||
drupal_set_message(t('An error occurred while flushing the image caches.', 'error'));
|
||||
drupal_set_message(t('An error occurred while flushing the image caches.'), 'error');
|
||||
}
|
||||
drupal_goto('admin/config/media/image-styles');
|
||||
}
|
||||
|
Reference in New Issue
Block a user