restore.provision.inc 746 Bytes
Newer Older
1 2 3 4 5
<?php

/**
 * Implementation of hook_provision_pre_restore
 */
6
function drush_http_pre_provision_restore() {
7
  drush_set_option('redirect_url', drush_get_option('web_maintenance_url'));
8 9
  d()->service('http')->create_site_config();
  d()->service('http')->parse_configs();
10 11
}

12
function drush_http_pre_provision_restore_rollback() {
13 14
  d()->service('http')->create_site_config();
  d()->service('http')->parse_configs();
15 16
}

17
function drush_http_post_provision_restore() {
18 19
  d()->service('http')->create_site_config();
  d()->service('http')->parse_configs();
20 21 22 23

}

// The old db details should have been switched back by the mysql rollback at this point.
24 25
function drush_http_post_provision_restore_rollback() {
  drush_http_post_provision_restore();
26
}