diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-06 16:17:30 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-06 16:17:30 +0000 |
commit | 7442dc060f4c58a62de98b0437dbb2d2137ed59c (patch) | |
tree | 2c3dbfb2d544119da3dfe7a614364c78f485a9cd /modules/field/field.module | |
parent | 1f9077ee9263a64eb62cfdb75d7a5233cb86e83c (diff) | |
download | brdo-7442dc060f4c58a62de98b0437dbb2d2137ed59c.tar.gz brdo-7442dc060f4c58a62de98b0437dbb2d2137ed59c.tar.bz2 |
#392494 by yched and bjaspan: Provide a query API for Field API. This is necessary because we can't assume fields will be stored in a database, due to pluggable storage backends.
Diffstat (limited to 'modules/field/field.module')
-rw-r--r-- | modules/field/field.module | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/field/field.module b/modules/field/field.module index 29bf758fa..f518169f9 100644 --- a/modules/field/field.module +++ b/modules/field/field.module @@ -87,6 +87,25 @@ define('FIELD_LOAD_CURRENT', 'FIELD_LOAD_CURRENT'); */ define('FIELD_LOAD_REVISION', 'FIELD_LOAD_REVISION'); +/** + * @name Field query flags + * @{ + * Flags for use in the $result_format parameter in field_attach_query(). + */ + +/** + * Result format argument for field_attach_query(). + */ +define('FIELD_QUERY_RETURN_VALUES', 'FIELD_QUERY_RETURN_VALUES'); + +/** + * Result format argument for field_attach_query(). + */ +define('FIELD_QUERY_RETURN_IDS', 'FIELD_QUERY_RETURN_IDS'); + +/** + * @} End of "Field query flags". + */ /** * Base class for all exceptions thrown by Field API functions. |