disable.provision.inc 469 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
<?php

/**
 * Provision disable command
 *
 * Disable an enabled and installed site
 */

/**
 * Make a backup of the site before we mess with it
 */
12
function drush_provision_drupal_pre_provision_disable($backup_file = null) {
13 14 15
  if (d()->type == 'site') {
    d()->site_enabled = false;
  }
16 17 18 19 20
}

/**
 * Set the enabled property of the site to false
 */
21
function drush_provision_drupal_post_provision_disable() {
22 23 24
  if (d()->type == 'site') {
    d()->write_alias();
  }
25 26
}