function imagecache_menu in ImageCache 6.2
Same name and namespace in other branches
- 5.2 imagecache.module \imagecache_menu()
- 5 imagecache.module \imagecache_menu()
Implementation of hook_menu().
File
- ./
imagecache.module, line 66 - Dynamic image resizer and image cacher.
Code
function imagecache_menu() {
$items = array();
// standard imagecache callback.
$items[file_directory_path() . '/imagecache'] = array(
'page callback' => 'imagecache_cache',
'access callback' => '_imagecache_menu_access_public_files',
'type' => MENU_CALLBACK,
);
// private downloads imagecache callback
$items['system/files/imagecache'] = array(
'page callback' => 'imagecache_cache_private',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}