function 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

File

modules/system/system.module, line 2666

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.