You are here

function ais_menu_alter in Adaptive Image Styles (ais) 7

Implements hook_menu_alter().

File

./ais.module, line 80
Adaptive Image Styles Module

Code

function ais_menu_alter(&$items) {

  // Find all page callbacks that use image_style_deliver() (including the ones
  // for public and private image styles defined by the Image module in Drupal
  // core) and replace them with a new one that handles adaptive image styles.
  foreach ($items as &$item) {
    if (isset($item['page callback']) && $item['page callback'] == 'image_style_deliver') {
      $item['page callback'] = 'ais_image_style_deliver';
    }
  }
}