You are here

function _backup_migrate_destination_parse_url in Backup and Migrate 5.2

Break a URL into it's component parts.

2 calls to _backup_migrate_destination_parse_url()
backup_migrate_backup_migrate_destinations in includes/destinations.inc
Implementation of hook_backup_migrate_destinations().
backup_migrate_get_destinations in includes/destinations.inc
Get all the available backup destination.

File

includes/destinations.inc, line 649
All of the destination handling code needed for Backup and Migrate.

Code

function _backup_migrate_destination_parse_url($url) {
  $out = (array) parse_url($url);
  $out['path'] = ltrim($out['path'], "/");
  return $out;
}