You are here

function imagecache_menu in ImageCache 5

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

Implementation of hook_menu().

File

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

Code

function imagecache_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => file_directory_path() . '/imagecache',
      'callback' => 'imagecache_cache',
      'access' => TRUE,
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'admin/settings/imagecache',
      'title' => t('Image cache'),
      'description' => t('Configure rulesets and actions for imagecache.'),
      'access' => user_access('administer imagecache'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'imagecache_admin',
      ),
    );
  }
  return $items;
}