function field_ui_form_node_type_form_submit
Same name in other branches
- 9 core/modules/field_ui/field_ui.module \field_ui_form_node_type_form_submit()
- 8.9.x core/modules/field_ui/field_ui.module \field_ui_form_node_type_form_submit()
Form submission handler for the 'Save and add fields' button.
See also
field_ui_form_node_type_form_alter()
1 string reference to 'field_ui_form_node_type_form_submit'
- field_ui_form_node_type_form_alter in modules/
field_ui/ field_ui.module - Implements hook_form_FORM_ID_alter().
File
-
modules/
field_ui/ field_ui.module, line 405
Code
function field_ui_form_node_type_form_submit($form, &$form_state) {
if ($form_state['triggering_element']['#parents'][0] === 'save_continue') {
$form_state['redirect'] = _field_ui_bundle_admin_path('node', $form_state['values']['type']) . '/fields';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.