- 7.x-3.x dns/delete.provision.inc
- 7.x-3.x platform/delete.provision.inc
- 7.x-3.x db/delete.provision.inc
- 7.x-3.x http/delete.provision.inc
Functions
Name![]() |
Description |
---|---|
drush_db_provision_delete | Implementation of hook_provision_delete() |
drush_db_provision_delete_validate |
File
db/delete.provision.incView source
- <?php
-
- function drush_db_provision_delete_validate() {
- if (d()->type === 'site') {
- d()->service('db')->connect();
- }
- }
-
- /**
- * Implementation of hook_provision_delete()
- *
- * This will drop the database, revoke the privileges and flush the privileges.
- */
- function drush_db_provision_delete() {
- if (d()->type === 'site') {
- d()->service('db')->destroy_site_database();
- }
- }
-