function field_ui_get_destinations

Extracts next redirect path from an array of multiple destinations.

See also

field_ui_next_destination()

3 calls to field_ui_get_destinations()
FieldOverview::submit in drupal/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php
Overrides Drupal\field_ui\OverviewBase::submit().
field_ui_field_delete_form_submit in drupal/core/modules/field_ui/field_ui.admin.inc
Form submission handler for field_ui_field_delete_form().
field_ui_next_destination in drupal/core/modules/field_ui/field_ui.admin.inc
Returns the next redirect path in a multipage sequence.

File

drupal/core/modules/field_ui/field_ui.admin.inc, line 1155
Administrative interface for custom field type creation.

Code

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,
  );
}