constant FIELD_BEHAVIOR_DEFAULT

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

hook_field_widget_info()

Related topics

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

... See full list

File

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

Code

define('FIELD_BEHAVIOR_DEFAULT', 0x2);