Value for field API concerning widget default and multiple value settings.

When used in a widget default context, indicates the widget accepts default values. When used in a multiple value context for a widget that allows the input of one single field value, indicates that the widget will be repeated for each value input.

See also


Related topics

FieldInfo::prepareInstance in modules/field/
Prepares an instance definition for the current run-time context.
field_behaviors_widget in modules/field/
Determines the behavior of a widget with respect to an operation.
field_default_form in modules/field/
Creates a form element for a field and can populate it with a default value.
field_default_form_errors in modules/field/
Transfer field-level validation errors to widgets.
field_ui_field_edit_form in modules/field_ui/
Form constructor for the field instance settings form.

... See full list


modules/field/field.module, line 255
Attach custom data fields to Drupal entities.


define('FIELD_BEHAVIOR_DEFAULT', 0x0002)