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

Submit handler for field_ui_view_mode_delete_form().

File

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

Code

function field_ui_view_mode_delete_form_submit($form, &$form_state) {
  entity_view_mode_delete($form['#entity_type'], $form['#machine_name']);

  backdrop_set_message(t('Deleted the %view-mode display mode.', array(
    '%view-mode' => $form['#view_mode']['label'],
  )));

  $form_state['redirect'] = $form['#path'];
}