From a136ab56c4b1d40a638a146b9c78a9f112f85b06 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 15 Jul 2009 17:55:18 +0000 Subject: - Patch #512236 by yched, bjaspan: design flaw in field_attach_query(), follow-up patch with bugfixes and tests. --- modules/field/field.api.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'modules/field/field.api.php') 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) { } /** -- cgit v1.2.3