import_7.inc

Globals

Namesort descending Description
$databases

File

platform/drupal/import_7.inc
View source
  1. <?php
  2. global $databases;
  3. if ($db = $databases['default']['default']) {
  4. drush_set_option('db_type', urldecode($db['driver']), 'site');
  5. drush_set_option('db_user', urldecode($db['username']), 'site');
  6. drush_set_option('db_host', urldecode($db['host']), 'site');
  7. drush_set_option('db_passwd', urldecode($db['password']), 'site');
  8. drush_set_option('db_name', urldecode($db['database']), 'site');
  9. drush_set_option('profile', variable_get('install_profile', 'standard'), 'site');
  10. $language = language_default();
  11. drush_set_option('language', $language->language, 'site');
  12. }