From 57090c33da0e007e6569106c92ce5b3cd3745bf7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 30 Sep 2009 12:26:36 +0000 Subject: - Patch #367013 by bjaspan, yched: clean ups for field_update_field(). --- modules/field/field.attach.inc | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'modules/field/field.attach.inc') diff --git a/modules/field/field.attach.inc b/modules/field/field.attach.inc index 5b5d31ed4..4b5441904 100644 --- a/modules/field/field.attach.inc +++ b/modules/field/field.attach.inc @@ -1109,19 +1109,6 @@ function field_attach_query_revisions($field_id, $conditions, $count, &$cursor = return field_attach_query($field_id, $conditions, $count, $cursor, FIELD_LOAD_REVISION); } -/** - * Determine whether a field has any data. - * - * @param $field - * A field structure. - * @return - * TRUE if the field has data for any object; FALSE otherwise. - */ -function field_attach_field_has_data($field) { - $results = field_attach_query($field['id'], array(), 1); - return !empty($results); -} - /** * Generate and return a structured content array tree suitable for * drupal_render() for all of the fields on an object. The format of -- cgit v1.2.3