You are here

function imagecache_testsuite_menu in ImageCache Actions 6.2

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

Implementation of hook_menu().

File

tests/imagecache_testsuite.module, line 21

Code

function imagecache_testsuite_menu() {
  $items = array();
  $items['admin/build/imagecache/test'] = array(
    'title' => 'Test Suite',
    'page callback' => 'imagecache_testsuite_generate',
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/build/imagecache/test/%'] = array(
    'title' => 'Test Suite Image',
    'page callback' => 'imagecache_testsuite_generate',
    'page arguments' => array(
      4,
      5,
    ),
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/imagecache/positioning_test'] = array(
    'title' => 'Positioning Test',
    'page callback' => 'imagecache_testsuite_positioning',
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}