function field_default_submit

7.x field.default.inc field_default_submit($entity_type, $entity, $field, $instance, $langcode, &$items, $form, &$form_state)
1 call to field_default_submit()
field_ui_field_edit_form_submit in drupal-7.x/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 drupal-7.x/modules/field/field.attach.inc
Perform necessary operations on field data submitted by a form.

File

drupal-7.x/modules/field/field.default.inc, line 89
Default 'implementations' of hook_field_*(): common field housekeeping.

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);
}