From d5cda9659903f29cc939bdada56cd6b8596f8c2a Mon Sep 17 00:00:00 2001 From: mrded Date: Sat, 31 Aug 2013 17:13:38 +0100 Subject: [PATCH] Convert _session_test_id() to a new style controller --- .../tests/modules/session_test/session_test.module | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/core/modules/system/tests/modules/session_test/session_test.module b/core/modules/system/tests/modules/session_test/session_test.module index b6e1a53..5258eb6 100644 --- a/core/modules/system/tests/modules/session_test/session_test.module +++ b/core/modules/system/tests/modules/session_test/session_test.module @@ -11,10 +11,7 @@ function session_test_menu() { 'type' => MENU_CALLBACK, ); $items['session-test/id'] = array( - 'title' => 'Session ID', - 'page callback' => '_session_test_id', - 'access arguments' => array('access content'), - 'type' => MENU_CALLBACK, + 'route_name' => 'session_test_id', ); $items['session-test/id-from-cookie'] = array( 'title' => 'Session ID from cookie', @@ -95,19 +92,6 @@ function _session_test_no_set($value) { } /** - * Menu callback: print the current session ID. - */ -function _session_test_id() { - // Set a value in $_SESSION, so that drupal_session_commit() will start - // a session. - $_SESSION['test'] = 'test'; - - drupal_session_commit(); - - return 'session_id:' . session_id() . "\n"; -} - -/** * Menu callback: print the current session ID as read from the cookie. */ function _session_test_id_from_cookie() { -- 1.7.12.4 (Apple Git-37)