import_7.inc 584 Bytes
Newer Older
1 2 3
<?php
global $databases;
if ($db = $databases['default']['default']) {
4 5 6 7 8
  drush_set_option('db_type', urldecode($db['driver']), 'site');
  drush_set_option('db_user', urldecode($db['username']), 'site');
  drush_set_option('db_host', urldecode($db['host']), 'site');
  drush_set_option('db_passwd', urldecode($db['password']), 'site');
  drush_set_option('db_name', urldecode($db['database']), 'site');
9

10
  drush_set_option('profile', variable_get('install_profile', 'standard'), 'site');
11
  $language = language_default();
12
  drush_set_option('language', $language->language, 'site');
13
}