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.

106 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.
BlockStorageUnitTest::renderTests in drupal/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php
Tests the rendering of blocks.
block_page_build in drupal/core/modules/block/block.module
Implements hook_page_build().
book_admin_edit_submit in drupal/core/modules/book/book.admin.inc
Form submission handler for book_admin_edit().
book_node_predelete in drupal/core/modules/book/book.module
Implements hook_node_predelete().

... See full list

File

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

Code

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