? preset_description.patch
Index: imagecache.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagecache/imagecache.install,v
retrieving revision 1.27
diff -u -p -r1.27 imagecache.install
--- imagecache.install	1 May 2009 15:02:29 -0000	1.27
+++ imagecache.install	9 Mar 2010 22:32:21 -0000
@@ -46,7 +46,7 @@
 }
 
 function imagecache_schema() {
-    $schema['imagecache_preset'] = array(
+  $schema['imagecache_preset'] = array(
     'fields' => array(
       'presetid' => array(
         'description' => t('The primary identifier for an imagecache_preset.'),
@@ -60,6 +60,10 @@ function imagecache_schema() {
         'length' => 255,
         'not null' => TRUE,
       ),
+      'description' => array(
+        'description' => t('Administrative description of this preset'),
+        'type' => 'text',
+      ),
     ),
     'primary key' => array('presetid'),
   );
@@ -321,3 +325,15 @@ function imagecache_update_6001() {
   db_change_field($ret, 'imagecache_action', 'weight', 'weight', array('type' => 'int', 'not null' => TRUE, 'default' => 0));
   return $ret;
 }
+
+/**
+ * Implementation of hook_update_N()
+ *
+ * Add a new text field to the {imagecache_preset} table for the preset description.
+ */
+function imagecache_update_6002() {
+  $ret = array();
+  $schema = imagecache_schema();
+  db_add_field($ret, 'imagecache_preset', 'description', $schema['imagecache_preset']['fields']['description']);
+  return $ret;
+}
Index: imagecache_ui.pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagecache/imagecache_ui.pages.inc,v
retrieving revision 1.6
diff -u -p -r1.6 imagecache_ui.pages.inc
--- imagecache_ui.pages.inc	3 May 2009 17:27:46 -0000	1.6
+++ imagecache_ui.pages.inc	9 Mar 2010 22:32:22 -0000
@@ -35,6 +35,10 @@ function imagecache_ui_preset_overview()
     }
     $row[] = implode('&nbsp;&nbsp;&nbsp;&nbsp;', $links);
     $rows[] = $row;
+    $rows[] = array(array(
+      'colspan' => 3, //count($header)
+      'data' => ($preset['description'] ? $preset['description'] : '-- '. t('Has no description of this preset yet.') .' --'),
+    ));
   }
   $output = theme('table', $header, $rows);
   return $output;
@@ -164,6 +168,15 @@ function imagecache_ui_preset_form($form
     );
   }
 
+  $form['description'] = array(
+    '#type' => 'textarea',
+    '#title' => t('Description'),
+    '#default_value' => $preset['description'],
+    '#description' => t('Administrative description of this preset'),
+    '#weight' => 8.9,
+    '#disabled' => ($preset['storage'] === IMAGECACHE_STORAGE_DEFAULT),
+  );
+
   $form['submit'] = array(
     '#type' => 'submit',
     '#value' => $preset['storage'] === IMAGECACHE_STORAGE_DEFAULT ? t('Override Defaults') : t('Save Preset'),
