function field_default_submit
1 call to field_default_submit()
- field_ui_field_edit_form_submit in modules/
field_ui/ field_ui.admin.inc - Form submission handler for field_ui_field_edit_form().
1 invocation of field_default_submit()
- field_attach_submit in modules/
field/ field.attach.inc - Perform necessary operations on field data submitted by a form.
File
-
modules/
field/ field.default.inc, line 89
Code
function field_default_submit($entity_type, $entity, $field, $instance, $langcode, &$items, $form, &$form_state) {
// Filter out empty values.
$items = _field_filter_items($field, $items);
// Reorder items to account for drag-n-drop reordering.
$items = _field_sort_items($field, $items);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.