1 image.api.php hook_image_supported_extensions_alter(&$supported_extensions)

Modify the array of supported image extensions.

Parameters

array $supported_extensions: Array of file extensions that are supposed to be supported.

See also

image_field_widget_form()

Related topics

File

core/modules/image/image.api.php, line 160
Hooks related to image styles and effects.

Code

function hook_image_supported_extensions_alter(&$supported_extensions) {
  // Add Wireless Bitmap Image File to the list.
  $supported_extensions[] = 'wbmp';
}