You are here

function filefield_paths_menu_alter in File (Field) Paths 7

Implements hook_menu_alter().

Parameters

$items:

File

modules/image.inc, line 22
Image module integration.

Code

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