function drupal_static_reset

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

Parameters

$name: Name of the static variable to reset. Omit to reset all variables.

100 calls to drupal_static_reset()
BlockLanguageTest::testLanguageBlockVisibility in drupal/core/modules/block/lib/Drupal/block/Tests/BlockLanguageTest.php
Tests the visibility settings for the blocks based on language.
block_page_build in drupal/core/modules/block/block.module
Implements hook_page_build().
book_node_predelete in drupal/core/modules/book/book.module
Implements hook_node_predelete().
CacheTest::testHeaderStorage in drupal/core/modules/views/lib/Drupal/views/Tests/Plugin/CacheTest.php
Tests css/js storage and restoring mechanism.
CascadingStylesheetsTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php
Sets up a Drupal site for running functional and integration tests.

... See full list

File

drupal/core/includes/bootstrap.inc, line 3291
Functions that need to be loaded on every Drupal request.

Code

function drupal_static_reset($name = NULL) {
  drupal_static($name, NULL, TRUE);
}