/[drupal]/contributions/modules/provision/platform/disable.provision.inc
ViewVC logotype

Contents of /contributions/modules/provision/platform/disable.provision.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.9 - (show annotations) (download) (as text)
Mon Jul 27 17:12:02 2009 UTC (3 months, 4 weeks ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-3, DRUPAL-6--0-4-ALPHA1, DRUPAL-6--0-4-ALPHA3, DRUPAL-6--0-4-ALPHA2, DRUPAL-6--0-3-RC4, DRUPAL-6--0-3-RC3, HEAD
Changes since 1.8: +1 -12 lines
File MIME type: text/x-php
#529348 - do not failed disabling broken sites
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

  ViewVC Help
Powered by ViewVC 1.1.2