summaryrefslogtreecommitdiff
path: root/modules/image/image.api.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-07-21 07:09:47 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-07-21 07:09:47 +0000
commit2da6a0ed1e32189010ff2cb9b39ecaad18250e2d (patch)
treedf0bd7160b7bcdbc28e8455b099d1b284c8b42f2 /modules/image/image.api.php
parent6199ae64c9da0b1d2309a6657aac5f6a492c512a (diff)
downloadbrdo-2da6a0ed1e32189010ff2cb9b39ecaad18250e2d.tar.gz
brdo-2da6a0ed1e32189010ff2cb9b39ecaad18250e2d.tar.bz2
#371374 by quicksketch, drewish, eojthebrave, and dopry: ImageCache UI in core. Hell yeah! :D Resizable, scalable, croppable, grey-scalable, rotatey images for all.
Diffstat (limited to 'modules/image/image.api.php')
-rw-r--r--modules/image/image.api.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/image/image.api.php b/modules/image/image.api.php
index d285f3864..1a1fe6111 100644
--- a/modules/image/image.api.php
+++ b/modules/image/image.api.php
@@ -21,18 +21,24 @@
* An array of image effects. This array is keyed on the machine-readable
* effect name. Each effect is defined as an associative array containing the
* following items:
- * - "name": The human-readable name of the effect.
- * - "effect callback": The function to call to perform this effect.
+ * - "label": The human-readable name of the effect.
+ * - "effect callback": The function to call to perform this image effect.
* - "help": (optional) A brief description of the effect that will be shown
- * when adding or configuring this effect.
+ * when adding or configuring this image effect.
+ * - "form callback": (optional) The name of a function that will return a
+ * $form array providing a configuration form for this image effect.
+ * - "summary theme": (optional) The name of a theme function that will output
+ * a summary of this image effect's configuration.
*/
function hook_image_effect_info() {
$effects = array();
$effects['mymodule_resize'] = array(
- 'name' => t('Resize'),
+ 'label' => t('Resize'),
'help' => t('Resize an image to an exact set of dimensions, ignoring aspect ratio.'),
'effect callback' => 'mymodule_resize_image',
+ 'form callback' => 'mymodule_resize_form',
+ 'summary theme' => 'mymodule_resize_summary',
);
return $effects;