function drush_theme_disable

8.0.x environment_7.inc drush_theme_disable($themes)
8.0.x environment_6.inc drush_theme_disable($themes)
8.0.x environment.inc drush_theme_disable($themes)
6.x environment_6.inc drush_theme_disable($themes)
6.x environment.inc drush_theme_disable($themes)
6.x environment_7.inc drush_theme_disable($themes)
7.x environment_7.inc drush_theme_disable($themes)
7.x environment_6.inc drush_theme_disable($themes)
7.x environment.inc drush_theme_disable($themes)
3.x environment_7.inc drush_theme_disable($themes)
3.x environment_6.inc drush_theme_disable($themes)
3.x environment_5.inc drush_theme_disable($themes)
4.x environment_6.inc drush_theme_disable($themes)
4.x environment_5.inc drush_theme_disable($themes)
4.x environment.inc drush_theme_disable($themes)
5.x environment_6.inc drush_theme_disable($themes)
5.x environment.inc drush_theme_disable($themes)
master environment_7.inc drush_theme_disable($themes)
master environment.inc drush_theme_disable($themes)

Disable a list of themes.

This function is based on system_themes_form_submit().

Parameters

$themes: Array of theme names.

See also

system_themes_form_submit()

1 call to drush_theme_disable()
drush_pm_disable in commands/pm/pm.drush.inc
Command callback. Disable one or more extensions.

File

commands/core/drupal/environment_6.inc, line 188
Specific functions for a drupal 6 environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal drush is called from.

Code

function drush_theme_disable($themes) {
  drupal_clear_css_cache();
  db_query("UPDATE {system} SET status = 0 WHERE type = 'theme' AND name IN (" . db_placeholders($themes, 'text') . ")", $themes);
  list_themes(TRUE);
  menu_rebuild();
  drupal_rebuild_theme_registry();
  module_invoke('locale', 'system_update', $themes);
}