1234567891011121314151617181920212223242526272829 |
- <?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'];
- }
- }
|