You are here

function system_list_reset in Drupal 7

Same name and namespace in other branches
  1. 8 core/includes/module.inc \system_list_reset()

Resets all system_list() caches.

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

... See full list

File

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');
}