Rebuild, save, and return data about all currently available themes.
Array of all available themes and their data.
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;
}