diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-15 17:55:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-15 17:55:18 +0000 |
commit | a136ab56c4b1d40a638a146b9c78a9f112f85b06 (patch) | |
tree | bc181676a6fbb82e90a8b27dc9196cbf29300cbc /modules/field/field.api.php | |
parent | 6310a1a8f2ed5d52f1b46c06f3d8a69f97647b4e (diff) | |
download | brdo-a136ab56c4b1d40a638a146b9c78a9f112f85b06.tar.gz brdo-a136ab56c4b1d40a638a146b9c78a9f112f85b06.tar.bz2 |
- Patch #512236 by yched, bjaspan: design flaw in field_attach_query(), follow-up patch with bugfixes and tests.
Diffstat (limited to 'modules/field/field.api.php')
-rw-r--r-- | modules/field/field.api.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/field/field.api.php b/modules/field/field.api.php index 1a388272e..a9980118c 100644 --- a/modules/field/field.api.php +++ b/modules/field/field.api.php @@ -701,7 +701,9 @@ function hook_field_attach_pre_update($obj_type, $object, &$skip_fields) { * A storage module that doesn't support querying a given column should raise * a FieldQueryException. Incompatibilities should be mentioned on the module * project page. - * @param $result_format + * @param $count + * See field_attach_query(). + * @param $cursor * See field_attach_query(). * @param $age * - FIELD_LOAD_CURRENT: query the most recent revisions for all @@ -715,7 +717,7 @@ function hook_field_attach_pre_update($obj_type, $object, &$skip_fields) { * The $skip_field parameter should be set to TRUE if the query has been * handled. */ -function hook_field_attach_pre_query($field_name, $conditions, $result_format, $age, &$skip_field) { +function hook_field_attach_pre_query($field_name, $conditions, $count, &$cursor = NULL, $age, &$skip_field) { } /** @@ -879,14 +881,16 @@ function hook_field_storage_delete_revision($obj_type, $object) { * A storage module that doesn't support querying a given column should raise * a FieldQueryException. Incompatibilities should be mentioned on the module * project page. - * @param $result_format + * @param $count + * See field_attach_query(). + * @param $cursor * See field_attach_query(). * @param $age * See field_attach_query(). * @return * See field_attach_query(). */ -function hook_field_storage_query($field_name, $conditions, $result_format, $age) { +function hook_field_storage_query($field_name, $conditions, $count, &$cursor = NULL, $age) { } /** |