| 1 |
<?php
|
| 2 |
|
| 3 |
// $Id: disable.provision.inc,v 1.8 2009/05/12 21:31:08 anarcat Exp $
|
| 4 |
|
| 5 |
/**
|
| 6 |
* Provision disable command
|
| 7 |
*
|
| 8 |
* Disable an enabled and installed site
|
| 9 |
*/
|
| 10 |
|
| 11 |
/**
|
| 12 |
* Make a backup of the site before we mess with it
|
| 13 |
*/
|
| 14 |
function drush_provision_drupal_pre_provision_disable($url, $backup_file = null) {
|
| 15 |
drush_set_option('force', true, 'process');
|
| 16 |
drush_invoke("provision backup", $url, $backup_file);
|
| 17 |
drush_unset_option('force', 'process');
|
| 18 |
}
|
| 19 |
|
| 20 |
/**
|
| 21 |
* Set the enabled property of the site to false
|
| 22 |
*/
|
| 23 |
function drush_provision_drupal_post_provision_disable() {
|
| 24 |
drush_set_option('enabled', FALSE, 'site');
|
| 25 |
}
|
| 26 |
|