disable.provision.inc 660 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?php

// $Id$

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

/**
 * Make sure the command we are running is on an installed site.
 */
function provision_drupal_provision_disable_validate() {
  _provision_drupal_url_required();
  _provision_drupal_valid_installed_site();
}

/**
 * Make a backup of the site before we mess with it
 */
22 23
function provision_drupal_provision_pre_disable($url, $backup_file = null) {
  provision_invoke("backup", $url, $backup_file);
24 25 26 27 28
}

/**
 * Set the enabled property of the site to false
 */
29 30
function provision_drupal_provision_post_disable() {
  drush_set_option('enabled', FALSE, 'site');
31 32
}