function system_list_reset

Resets all system_list() caches.

5 calls to system_list_reset()
list_themes in drupal/core/includes/theme.inc
Returns a list of all currently available themes.
ModuleHandler::disable in drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php
Disables a given set of modules.
ModuleHandler::enable in drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php
Enables or installs a given list of modules.
UpdateModuleHandler::enable in drupal/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php
Enables or installs a given list of modules.
update_set_schema in drupal/core/includes/update.inc
Forces a module to a given schema version.

File

drupal/core/includes/module.inc, line 109
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')
    ->delete('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.
  Drupal::state()
    ->delete('system.theme.data');
}