Enables a given list of themes.
$theme_list: An array of theme names.
function theme_enable($theme_list) {
drupal_clear_css_cache();
foreach ($theme_list as $key) {
db_update('system')
->fields(array(
'status' => 1,
))
->condition('type', 'theme')
->condition('name', $key)
->execute();
}
list_themes(TRUE);
menu_rebuild();
drupal_theme_rebuild();
// Invoke hook_themes_enabled() after the themes have been enabled.
module_invoke_all('themes_enabled', $theme_list);
}