1 field_ui.admin.inc field_ui_field_edit_form_delete_submit($form, &$form_state)

Form submission handler for 'Delete' button in field_ui_field_edit_form().

File

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

Code

function field_ui_field_edit_form_delete_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = backdrop_get_destination();
    unset($_GET['destination']);
  }
  $instance = $form['#instance'];
  $form_state['redirect'] = array('admin/structure/types/manage/' . $instance['bundle'] . '/fields/' . $instance['field_name'] . '/delete', array('query' => $destination));
}