enable.provision.inc 383 Bytes
Newer Older
1 2 3 4 5 6 7
<?php

/**
 * Provision enable command
 *
 * Enable a site that has been disabled
 */
8
function drush_provision_drupal_provision_enable_validate() {
9 10 11 12
  if (d()->type == 'site') {
    d()->site_enabled = true;
    drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_SITE);
  }
13 14
}

15
function drush_provision_drupal_post_provision_enable() {
16 17 18
  if (d()->type == 'site') {
    d()->write_alias();
  }
19 20 21
}