Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
40ced83c
Commit
40ced83c
authored
Dec 15, 2010
by
Angie Byron
Browse files
#993852
by nenne, jhodgdon: Document various Field API constants.
parent
e134d549
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/field/field.module
View file @
40ced83c
...
...
@@ -75,21 +75,33 @@ class FieldException extends Exception {}
*/
/**
* Value for $field['cardinality'] property to indicate it can hold an
* unlimited number of values.
* Value for field API indicating a field accepts an unlimited number of values.
*/
define
(
'FIELD_CARDINALITY_UNLIMITED'
,
-
1
);
/**
* TODO
* Value for field API indicating a widget doesn't accept default values.
*
* @see hook_field_widget_info()
*/
define
(
'FIELD_BEHAVIOR_NONE'
,
0x0001
);
/**
* TODO
* Value for field API concerning widget default and multiple value settings.
*
* @see hook_field_widget_info()
*
* 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.
*/
define
(
'FIELD_BEHAVIOR_DEFAULT'
,
0x0002
);
/**
* TODO
* Value for field API indicating a widget can receive several field values.
*
* @see hook_field_widget_info()
*/
define
(
'FIELD_BEHAVIOR_CUSTOM'
,
0x0004
);
...
...
@@ -98,6 +110,7 @@ class FieldException extends Exception {}
* field data with field_attach_load().
*/
define
(
'FIELD_LOAD_CURRENT'
,
'FIELD_LOAD_CURRENT'
);
/**
* Age argument for loading the version of an entity's field data
* specified in the entity with field_attach_load().
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment