1.20.x bootstrap.inc backdrop_static_reset($name = NULL)

Resets one or all centrally stored static variable(s).

Parameters

$name: Name of the static variable to reset. Omit to reset all variables. Resetting all variables should only be used, for example, for running unit tests with a clean environment.

File

includes/bootstrap.inc, line 4509
Functions that need to be loaded on every Backdrop request.

Code

function backdrop_static_reset($name = NULL) {
  backdrop_static($name, NULL, TRUE);
}