You are here

function imagecache_testsuite_menu in ImageCache Actions 7

Same name and namespace in other branches
  1. 8 tests/imagecache_testsuite.module \imagecache_testsuite_menu()
  2. 6.2 tests/imagecache_testsuite.module \imagecache_testsuite_menu()

Implementation of hook_menu().

File

tests/imagecache_testsuite.module, line 17

Code

function imagecache_testsuite_menu() {
  $items = array();
  $items['admin/config/media/image-styles/testsuite'] = array(
    'title' => 'Test Suite',
    'page callback' => 'imagecache_testsuite_page',
    'access arguments' => array(
      'administer image styles',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/config/media/image-styles/testsuite/%/%'] = array(
    'title' => 'Test Suite Image',
    'page callback' => 'imagecache_testsuite_generate',
    'page arguments' => array(
      5,
      6,
    ),
    'access arguments' => array(
      'administer image styles',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/media/image-styles/testsuite/positioning_test'] = array(
    'title' => 'Positioning Test',
    'page callback' => 'imagecache_testsuite_positioning',
    'access arguments' => array(
      'administer image styles',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}