disable.provision.inc

  1. 7.x-3.x platform/disable.provision.inc
  2. 7.x-3.x http/disable.provision.inc

Functions

Namesort descending Description
drush_provision_drupal_post_provision_disable Set the enabled property of the site to false
drush_provision_drupal_pre_provision_disable Make a backup of the site before we mess with it

File

platform/disable.provision.inc
View source
  1. <?php
  2. /**
  3. * Provision disable command
  4. *
  5. * Disable an enabled and installed site
  6. */
  7. /**
  8. * Make a backup of the site before we mess with it
  9. */
  10. function drush_provision_drupal_pre_provision_disable($backup_file = null) {
  11. if (d()->type == 'site') {
  12. d()->site_enabled = false;
  13. }
  14. }
  15. /**
  16. * Set the enabled property of the site to false
  17. */
  18. function drush_provision_drupal_post_provision_disable() {
  19. if (d()->type == 'site') {
  20. d()->write_alias();
  21. }
  22. }