function _session_test_get

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 "";
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.