You are here

function field_ui_get_destinations in Drupal 7

Extracts next redirect path from an array of multiple destinations.

See also

field_ui_next_destination()

3 calls to field_ui_get_destinations()
field_ui_field_delete_form_submit in modules/field_ui/field_ui.admin.inc
Form submission handler for field_ui_field_delete_form().
field_ui_field_overview_form_submit in modules/field_ui/field_ui.admin.inc
Form submission handler for field_ui_field_overview_form().
field_ui_next_destination in modules/field_ui/field_ui.admin.inc
Returns the next redirect path in a multipage sequence.

File

modules/field_ui/field_ui.admin.inc, line 2096
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,
  );
}