7.x system.module system_rebuild_theme_data()

Rebuild, save, and return data about all currently available themes.

Return value

Array of all available themes and their data.

8 calls to system_rebuild_theme_data()
block_update_7004 in modules/block/block.install
Add new blocks to new regions, migrate custom variables to blocks.
drupal_flush_all_caches in includes/common.inc
Flushes all cached data on the site.
ModuleDependencyTestCase::testThemeMetaData in modules/system/system.test
Tests whether the correct theme metadata is returned.
system_install in modules/system/system.install
Implements hook_install().
system_themes_page in modules/system/system.admin.inc
Menu callback; displays a listing of all themes.

... See full list


modules/system/system.module, line 2641
Configuration system that lets administrators modify the workings of the site.


function system_rebuild_theme_data() {
  $themes = _system_rebuild_theme_data();
  system_get_files_database($themes, 'theme');
  system_update_files_database($themes, 'theme');
  return $themes;