/[drupal]/contributions/modules/provision/db_server/delete.provision.inc
ViewVC logotype

Contents of /contributions/modules/provision/db_server/delete.provision.inc

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


Revision 1.4 - (show annotations) (download) (as text)
Tue May 12 21:23:53 2009 UTC (6 months, 2 weeks ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-3, DRUPAL-6--0-2, DRUPAL-6--0-2-RC1, DRUPAL-6--0-4-ALPHA1, DRUPAL-6--0-2-BETA1, DRUPAL-6--0-4-ALPHA3, DRUPAL-6--0-4-ALPHA2, DRUPAL-6--0-3-RC4, DRUPAL-6--0-3-RC2, DRUPAL-6--0-3-RC3, DRUPAL-6--0-3-RC1, HEAD
Changes since 1.3: +1 -3 lines
File MIME type: text/x-php
Refactor the algorigthms to guess the proper 'host' part of the MySQL
user names

Completely remove the user when revoking his privileges.

Closes: #455954
1 <?php
2
3
4 function drush_provision_mysql_provision_delete_validate() {
5 provision_db_connect();
6 }
7
8 /**
9 * Implementation of hook_provision_delete()
10 *
11 * This will drop the database, revoke the privileges and flush the privileges.
12 */
13 function drush_provision_mysql_provision_delete($url = NULL) {
14 return _provision_mysql_destroy_site_db(drush_get_option('db_name'), drush_get_option('db_user'), drush_get_option('db_passwd'));
15 }
16

  ViewVC Help
Powered by ViewVC 1.1.2