summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-02-19 01:09:31 +0000
committerDries Buytaert <dries@buytaert.net>2011-02-19 01:09:31 +0000
commit860e546695c14b2f348ca8c2a9c1d8bd2730c780 (patch)
tree40020c6fe962f4b318e13d34385b6978e3ea43b4
parentd58e24b2478349257a193a02a06345c570a4c2b3 (diff)
downloadbrdo-860e546695c14b2f348ca8c2a9c1d8bd2730c780.tar.gz
brdo-860e546695c14b2f348ca8c2a9c1d8bd2730c780.tar.bz2
- Patch #1019596 by RoboPhred: field_read_instance() doc says it will not return deleted instance, but that is a parameter option.
-rw-r--r--modules/field/field.crud.inc9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/field/field.crud.inc b/modules/field/field.crud.inc
index eda3218c5..7a5c8c824 100644
--- a/modules/field/field.crud.inc
+++ b/modules/field/field.crud.inc
@@ -635,12 +635,11 @@ function _field_write_instance($instance, $update = FALSE) {
}
/**
- * Reads a single instance record directly from the database.
+ * Reads a single instance record from the database.
*
- * Generally, you should use the field_info_instance() instead.
- *
- * This function will not return deleted instances. Use
- * field_read_instances() instead for this purpose.
+ * Generally, you should use field_info_instance() instead, as it
+ * provides caching and allows other modules the opportunity to
+ * append additional formatters, widgets, and other information.
*
* @param $entity_type
* The type of entity to which the field is bound.