You are here

function imagecache_menu in ImageCache 5.2

Same name and namespace in other branches
  1. 5 imagecache.module \imagecache_menu()
  2. 6.2 imagecache.module \imagecache_menu()

Implementation of hook_menu().

File

./imagecache.module, line 51
Dynamic image resizer and image cacher.

Code

function imagecache_menu($may_cache) {
  $items = array();
  if ($may_cache) {

    // standard imagecache callback.
    $items[] = array(
      'path' => file_directory_path() . '/imagecache',
      'callback' => 'imagecache_cache',
      'access' => true,
      'type' => MENU_CALLBACK,
    );

    // private downloads imagecache callback
    $items[] = array(
      'path' => 'system/files/imagecache',
      'callback' => 'imagecache_cache_private',
      'access' => true,
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}