function field_ui_next_destination
Returns the next redirect path in a multipage sequence.
3 calls to field_ui_next_destination()
- field_ui_field_edit_form_submit in modules/
field_ui/ field_ui.admin.inc - Form submission handler for field_ui_field_edit_form().
- field_ui_field_settings_form_submit in modules/
field_ui/ field_ui.admin.inc - Form submission handler for field_ui_field_settings_form().
- field_ui_widget_type_form_submit in modules/
field_ui/ field_ui.admin.inc - Form submission handler for field_ui_widget_type_form().
File
-
modules/
field_ui/ field_ui.admin.inc, line 2117
Code
function field_ui_next_destination($entity_type, $bundle) {
$destinations = !empty($_REQUEST['destinations']) ? $_REQUEST['destinations'] : array();
if (!empty($destinations)) {
unset($_REQUEST['destinations']);
}
// Remove any external URLs.
$destinations = array_diff($destinations, array_filter($destinations, 'url_is_external'));
if ($destinations) {
return field_ui_get_destinations($destinations);
}
$admin_path = _field_ui_bundle_admin_path($entity_type, $bundle);
return $admin_path . '/fields';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.