From 496e56b341bad6a6517adba600b757ed01efecce Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon <yahgrp@poplarware.com> Date: Tue, 23 Apr 2013 07:39:56 -0700 Subject: [PATCH] Issue #1973762 by chx, cosmicdreams, yched: Add example to field_info_field_map return docs --- modules/field/field.info.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/field/field.info.inc b/modules/field/field.info.inc index 396ad5fd1950..02b3c9ca460a 100644 --- a/modules/field/field.info.inc +++ b/modules/field/field.info.inc @@ -449,6 +449,17 @@ function field_info_bundles($entity_type = NULL) { * - type: The field type. * - bundles: The bundles in which the field appears, as an array with entity * types as keys and the array of bundle names as values. + * Example: + * @code + * array( + * 'body' => array( + * 'bundles' => array( + * 'node' => array('page', 'article'), + * ), + * 'type' => 'text_with_summary', + * ), + * ); + * @endcode */ function field_info_field_map() { $cache = _field_info_field_cache(); -- GitLab