Example: Image
Same name in other branches
- 7.x-1.x image_example/image_example.module \image_example
Demonstrates the basic use of image API.
This module demonstrates the use of new image effects including the following topics.
- Demonstrates the use of hook_ENTITY_TYPE_delete() to update module specific variables when an image style is deleted.
- Generate a form with a field of type #managed_file that allows the user to upload an image and choose a style to use when displaying that image.
- Demonstrates how to theme an image using an image style.
See also
hook_image_effect_info_alter().
Parent topics
File
-
modules/
image_example/ image_example.module, line 10
Functions
Title Sort descending | File name | Summary |
---|---|---|
image_example_help | modules/ |
Implements hook_help(). |
image_example_image_effect_info_alter | modules/ |
Implements hook_image_effect_info_alter(). |
Classes
Title Sort descending | File name | Summary |
---|---|---|
ColorizeImageEffect | modules/ |
Colorizes an image resource. |
ImageExampleTest | modules/ |
Functional tests for the Image Example module. |
StyleForm | modules/ |
Form for interacting with image styles. |