function system_rebuild_theme_data

You are here

7 system.module system_rebuild_theme_data()
8 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.

7 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.
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.
ThemeUpdater::postInstall in modules/system/system.updater.inc
Perform actions after installation.

... See full list

File

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

Code

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