1 session_test.module | session_test_menu() |
Implements hook_menu().
File
- core/
modules/ simpletest/ tests/ session_test.module, line 5
Code
function session_test_menu() {
$items['session-test/get'] = array(
'title' => 'Session value',
'page callback' => '_session_test_get',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
$items['session-test/id'] = array(
'title' => 'Session ID',
'page callback' => '_session_test_id',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
$items['session-test/id-from-cookie'] = array(
'title' => 'Session ID from cookie',
'page callback' => '_session_test_id_from_cookie',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
$items['session-test/set/%'] = array(
'title' => 'Set session value',
'page callback' => '_session_test_set',
'page arguments' => array(2),
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
$items['session-test/no-set/%'] = array(
'title' => 'Set session value but do not save session',
'page callback' => '_session_test_no_set',
'page arguments' => array(2),
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
$items['session-test/set-message'] = array(
'title' => 'Set message',
'page callback' => '_session_test_set_message',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
$items['session-test/set-message-but-do-not-save'] = array(
'title' => 'Set message but do not save session',
'page callback' => '_session_test_set_message_but_do_not_save',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
$items['session-test/is-logged-in'] = array(
'title' => 'Check if user is logged in',
'page callback' => '_session_test_is_logged_in',
'access callback' => 'user_is_logged_in',
'type' => MENU_CALLBACK,
);
return $items;
}