You are here

function _session_test_get in Drupal 7

Page callback, prints the stored session value to the screen.

1 string reference to '_session_test_get'
session_test_menu in modules/simpletest/tests/session_test.module
Implements hook_menu().

File

modules/simpletest/tests/session_test.module, line 90

Code

function _session_test_get() {
  if (!empty($_SESSION['session_test_value'])) {
    return t('The current value of the stored session variable is: %val', array(
      '%val' => $_SESSION['session_test_value'],
    ));
  }
  else {
    return "";
  }
}