summaryrefslogtreecommitdiff
path: root/modules/image/image.api.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/image/image.api.php')
-rw-r--r--modules/image/image.api.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/image/image.api.php b/modules/image/image.api.php
index 6f1ff37ac..298a3beb9 100644
--- a/modules/image/image.api.php
+++ b/modules/image/image.api.php
@@ -29,6 +29,8 @@
* $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.
+ *
+ * @see hook_image_effect_info_alter()
*/
function hook_image_effect_info() {
$effects = array();
@@ -45,6 +47,20 @@ function hook_image_effect_info() {
}
/**
+ * Alter the information provided in hook_image_effect_info().
+ *
+ * @param $effects
+ * The array of image effects, keyed on the machine-readable effect name.
+ *
+ * @see hook_image_effect_info()
+ */
+function hook_image_effect_info_alter(&$effects) {
+ // Override the Image module's crop effect with more options.
+ $effect['image_crop']['effect callback'] = 'mymodule_crop_effect';
+ $effect['image_crop']['form callback'] = 'mymodule_crop_form';
+}
+
+/**
* Respond to image style updating.
*
* This hook enables modules to update settings that might be affected by