? .directory
? imagecache-813804.patch
Index: imagecache.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagecache/imagecache.module,v
retrieving revision 1.112.2.9
diff -u -p -r1.112.2.9 imagecache.module
--- imagecache.module	26 May 2010 21:08:58 -0000	1.112.2.9
+++ imagecache.module	10 Aug 2010 18:37:54 -0000
@@ -1245,6 +1245,22 @@ function imagecache_generate_action_form
 }
 
 /**
+ * Implementation of hook_submit().
+ *
+ * _submit required by the rules module
+ * http://drupal.org/node/813804
+ */
+function imagecache_generate_action_submit($form, $form_state) {
+  $presets = array();
+  foreach ($form_state['values']['presets'] as $preset) {
+    if (!empty($preset)) {
+      $presets['imagecache_presets'][] = $preset;
+    }
+  }
+  return $presets;
+}
+
+/**
  * Generate a derivative image given presetname and filepath.
  *
  * This is a developer friendly version of _imagecache_cache(), it doesn't worry
