function system_list_reset

Resets all system_list() caches.

6 calls to system_list_reset()
BootstrapGetFilenameWebTestCase::testDrupalGetFilename in drupal/modules/simpletest/tests/bootstrap.test
Test that drupal_get_filename() works correctly with a full Drupal site.
list_themes in drupal/includes/theme.inc
Returns a list of all currently available themes.
module_disable in drupal/includes/module.inc
Disables a given set of modules.
module_enable in drupal/includes/module.inc
Enables or installs a given list of modules.
system_update_files_database in drupal/modules/system/system.module
Updates the records in the system table based on the files array.

... See full list

File

drupal/includes/module.inc, line 224
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_clear_all('bootstrap_modules', 'cache_bootstrap');
  cache_clear_all('system_list', 'cache_bootstrap');

  // Clean up the bootstrap file scan cache.
  drupal_static_reset('_drupal_file_scan_cache');
  cache_clear_all('_drupal_file_scan_cache', 'cache_bootstrap');
}