Returns the next redirect path in a multipage sequence.
function field_ui_next_destination($entity_type, $bundle) {
$destinations = !empty($_REQUEST['destinations']) ? $_REQUEST['destinations'] : array();
if (!empty($destinations)) {
unset($_REQUEST['destinations']);
return field_ui_get_destinations($destinations);
}
$admin_path = field_ui_bundle_admin_path($entity_type, $bundle);
return $admin_path . '/fields';
}