Commit bc3f72a9 authored by Dries's avatar Dries
Browse files

- Patch #998016 by sven.lauer: _field_info_collate_fields() doc has the return values backwards.

parent 9fd8b30d
...@@ -167,15 +167,15 @@ function _field_info_collate_types($reset = FALSE) { ...@@ -167,15 +167,15 @@ function _field_info_collate_types($reset = FALSE) {
* @return * @return
* If $reset is TRUE, nothing. * If $reset is TRUE, nothing.
* If $reset is FALSE, an array containing the following elements: * If $reset is FALSE, an array containing the following elements:
* - fields: Array of existing fields, keyed by field name. This entry only * - fields: Array of existing fields, keyed by field ID. This element
* lists non-deleted fields. Each field has an additional element, * lists deleted and non-deleted fields, but not inactive ones.
* 'bundles', which is an array of all non-deleted instances to which the * Each field has an additional element, 'bundles', which is an array
* field is assigned. * of all non-deleted instances of that field.
* - fields_id: Array of existing fields, keyed by field id. This entry lists * - field_ids: Array of field IDs, keyed by field name. This element
* both deleted and non-deleted fields. The bundles element is the same as * only lists non-deleted, active fields.
* for 'fields'.
* - instances: Array of existing instances, keyed by entity type, bundle * - instances: Array of existing instances, keyed by entity type, bundle
* name and field name. This entry only lists non-deleted instances. * name and field name. This element only lists non-deleted instances
* whose field is active.
*/ */
function _field_info_collate_fields($reset = FALSE) { function _field_info_collate_fields($reset = FALSE) {
static $info; static $info;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment