1 system_test.module | system_test_menu() |
Implements hook_menu().
File
- core/
modules/ simpletest/ tests/ system_test.module, line 10 - Test module for system functions.
Code
function system_test_menu() {
$items['system-test/hello-world'] = array(
'title' => 'Hello world!',
'page callback' => 'system_test_hello_world',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/sleep/%'] = array(
'page callback' => 'system_test_sleep',
'page arguments' => array(2),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/sleep/shutdown/%'] = array(
'page callback' => 'system_test_sleep',
'page arguments' => array(3, TRUE),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/auth'] = array(
'page callback' => 'system_test_basic_auth_page',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/authorize-init/%'] = array(
'page callback' => 'system_test_authorize_init_page',
'page arguments' => array(2),
'access arguments' => array('administer software updates'),
'type' => MENU_CALLBACK,
);
$items['system-test/redirect/%'] = array(
'title' => 'Redirect',
'page callback' => 'system_test_redirect',
'page arguments' => array(2),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/multiple-redirects/%'] = array(
'title' => 'Redirect',
'page callback' => 'system_test_multiple_redirects',
'page arguments' => array(2),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/set-header'] = array(
'page callback' => 'system_test_set_header',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/redirect-noscheme'] = array(
'page callback' => 'system_test_redirect_noscheme',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/redirect-protocol-relative'] = array(
'page callback' => 'system_test_redirect_protocol_relative',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
$items['system-test/redirect-noparse'] = array(
'page callback' => 'system_test_redirect_noparse',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/redirect-invalid-scheme'] = array(
'page callback' => 'system_test_redirect_invalid_scheme',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/variable-get'] = array(
'title' => 'Variable Get',
'page callback' => 'variable_get',
'page arguments' => array('simpletest_bootstrap_variable_test', NULL),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/lock-acquire'] = array(
'title' => 'Lock acquire',
'page callback' => 'system_test_lock_acquire',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/lock-exit'] = array(
'title' => 'Lock acquire then exit',
'page callback' => 'system_test_lock_exit',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/backdrop-set-message'] = array(
'title' => 'Set messages with backdrop_set_message()',
'page callback' => 'system_test_backdrop_set_message',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/main-content-fallback'] = array(
'title' => 'Test main content fallback',
'page callback' => 'system_test_main_content_fallback',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/shutdown-functions'] = array(
'title' => 'Test shutdown functions',
'page callback' => 'system_test_page_shutdown_functions',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/get-destination'] = array(
'title' => 'Test $_GET[\'destination\']',
'page callback' => 'system_test_get_destination',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/request-destination'] = array(
'title' => 'Test $_REQUEST[\'destination\']',
'page callback' => 'system_test_request_destination',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['system-test/access'] = array(
'title' => 'Access granted',
'page callback' => 'system_test_hello_world',
'access callback' => 'system_test_access_callback',
'type' => MENU_CALLBACK,
);
return $items;
}