function drush_sitealias_convert_db_from_db_url

8.0.x drush_sitealias_convert_db_from_db_url($db_url)
6.x drush_sitealias_convert_db_from_db_url($db_url)
7.x drush_sitealias_convert_db_from_db_url($db_url)
3.x drush_sitealias_convert_db_from_db_url($db_url)
4.x drush_sitealias_convert_db_from_db_url($db_url)
5.x drush_sitealias_convert_db_from_db_url($db_url)
master drush_sitealias_convert_db_from_db_url($db_url)
1 call to drush_sitealias_convert_db_from_db_url()
_drush_sitealias_add_static_defaults in includes/
Add "static" default values to the given alias record. The difference between a static default and a transient default is that static defaults -always- exist in the alias record, and they are cached, whereas transient defaults are only…


includes/, line 1184
The site alias API.


function drush_sitealias_convert_db_from_db_url($db_url) {
  $result = array();

  if (is_array($db_url)) {
    $default_db = array();

    foreach ($db_url as $db_name => $db_urlstr) {
      $default_db[$db_name] = drush_convert_db_from_db_url($db_urlstr);

    $result['default'] = $default_db;
  else {
    $result = array('default' => array('default' => drush_convert_db_from_db_url($db_url)));

  return $result;