image.module

Version 1.26 (checked in on 2009/11/06 at 02:38:08 by webchick)

Exposes global functionality for creating image styles.

Constants

NameDescription
IMAGE_STORAGE_DEFAULTImage style constant for module-defined presets in code.
IMAGE_STORAGE_EDITABLEImage style constant to represent an editable preset.
IMAGE_STORAGE_MODULEImage style constant to represent any module-based preset.
IMAGE_STORAGE_NORMALImage style constant for user presets in the database.
IMAGE_STORAGE_OVERRIDEImage style constant for user presets that override module-defined presets.

Functions

NameDescription
image_default_style_revertRevert the changes made by users to a default image style.
image_default_style_saveSave a default image style to the database.
image_effectsLoad all image effects from the database.
image_effect_applyGiven an image object and effect, perform the effect on the file.
image_effect_definitionsPull in image effects exposed by modules implementing hook_image_effect_info().
image_effect_definition_loadLoad the definition for an image effect.
image_effect_deleteDelete an image effect.
image_effect_loadLoad a single image effect.
image_effect_saveSave an image effect.
image_file_deleteImplement hook_file_delete().
image_file_downloadImplement hook_file_download().
image_file_moveImplement hook_file_move().
image_file_referencesImplement hook_file_references().
image_filter_keywordAccept a keyword (center, top, left, etc) and return it as a pixel offset.
image_filter_percentAccept a percentage and return it in pixels.
image_flush_cachesImplement hook_flush_caches().
image_helpImplement of hook_help().
image_image_default_stylesImplement hook_image_default_styles().
image_menuImplement hook_menu().
image_path_flushClear cached versions of a specific file in all styles.
image_permissionImplement hook_permission().
image_stylesGet an array of all styles and their settings.
image_style_create_derivativeCreate a new image based on an image style.
image_style_deleteDelete an image style.
image_style_effectsLoad all the effects for an image style.
image_style_flushFlush cached media for a style.
image_style_generateMenu callback; Given a style and image path, generate a derivative.
image_style_loadLoad a style by style name or ID. May be used as a loader for menu items.
image_style_optionsGet an array of image styles suitable for using as select list options.
image_style_pathReturn the URI of an image when using a style.
image_style_saveSave an image style.
image_style_urlReturn the URL for an image derivative given a style and image path.
image_themeImplement hook_theme().
theme_image_styleReturn a themed image using a specific image style.
_image_effect_definitions_sortInternal function for sorting image effect definitions through uasort().
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.