Extracts next redirect path from an array of multiple destinations.
function field_ui_get_destinations($destinations) {
$path = array_shift($destinations);
$options = drupal_parse_url($path);
if ($destinations) {
$options['query']['destinations'] = $destinations;
}
return array(
$options['path'],
$options,
);
}