image.inc in File (Field) Paths 7
Same filename and directory in other branches
Image module integration.
File
modules/image.incView source
<?php
/**
* @file
* Image module integration.
*/
/**
* Implements hook_filefield_paths_field_type_info() on behalf of image.module.
*
* @return array
*/
function image_filefield_paths_field_type_info() {
return array(
'image',
);
}
/**
* Implements hook_menu_alter().
*
* @param $items
*/
function filefield_paths_menu_alter(&$items) {
// Workaround for issue with 'temporary://' image styles not being generated
// correctly in Drupal core Image module.
// @see https://www.drupal.org/node/2560139
if (!isset($items['system/temporary/styles/%image_style']) && isset($items['system/files/styles/%image_style'])) {
$items['system/temporary/styles/%image_style'] = $items['system/files/styles/%image_style'];
}
}
Functions
Name![]() |
Description |
---|---|
filefield_paths_menu_alter | Implements hook_menu_alter(). |
image_filefield_paths_field_type_info | Implements hook_filefield_paths_field_type_info() on behalf of image.module. |