You are here

function field_default_submit in Drupal 7

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