From 492ce213c91121ccb1354be93a151b8fe4d2b49f Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Tue, 23 Apr 2013 07:39:00 -0700 Subject: [PATCH] Issue #1973762 by chx, cosmicdreams, yched: Add example to field_info_field_map return docs --- core/modules/field/field.info.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/modules/field/field.info.inc b/core/modules/field/field.info.inc index d364a700f3a0126..38edcdbe2032cac 100644 --- a/core/modules/field/field.info.inc +++ b/core/modules/field/field.info.inc @@ -157,6 +157,17 @@ function field_behaviors_widget($op, $instance) { * - 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() { return Field::fieldInfo()->getFieldMap();