summaryrefslogtreecommitdiff
path: root/modules/field
diff options
context:
space:
mode:
Diffstat (limited to 'modules/field')
-rw-r--r--modules/field/field.info.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/field/field.info.inc b/modules/field/field.info.inc
index 396ad5fd1..02b3c9ca4 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();