1 menu_test.module menu_test_static_variable($value = NULL)

Static function for testing hook results.

Parameters

$value: The value to set or NULL to return the current value.

Return value

A text string for comparison to test assertions.:

File

core/modules/simpletest/tests/menu_test.module, line 550
Dummy module implementing hook menu.

Code

function menu_test_static_variable($value = NULL) {
  static $variable;
  if (!empty($value)) {
    $variable = $value;
  }
  return $variable;
}