function system_list_reset

Resets all system_list() caches.

13 calls to system_list_reset()
drupal_get_complete_schema in drupal/core/includes/schema.inc
Gets the whole database schema.
drupal_install_system in drupal/core/includes/install.inc
Installs the system module.
ForumTest::testEnableForumField in drupal/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php
Tests disabling and re-enabling the Forum module.
list_themes in drupal/core/includes/theme.inc
Return a list of all currently available themes.
LocaleCompareTest::testLocaleCompare in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php
Test for translation status storage and translation status comparison.

... See full list

File

drupal/core/includes/module.inc, line 267
API for loading and interacting with Drupal modules.

Code

function system_list_reset() {
  drupal_static_reset('system_list');
  drupal_static_reset('system_rebuild_module_data');
  drupal_static_reset('list_themes');
  cache('bootstrap')
    ->deleteMultiple(array(
    'bootstrap_modules',
    'system_list',
  ));
  cache()
    ->delete('system_info');

  // Remove last known theme data state.
  // This causes system_list() to call system_rebuild_theme_data() on its next
  // invocation. When enabling a module that implements hook_system_info_alter()
  // to inject a new (testing) theme or manipulate an existing theme, then that
  // will cause system_list_reset() to be called, but theme data is not
  // necessarily rebuilt afterwards.
  // @todo Obsolete with proper installation status for themes.
  state()
    ->delete('system.theme.data');
}