summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorJennifer Hodgdon <yahgrp@poplarware.com>2013-01-21 16:23:28 -0800
committerJennifer Hodgdon <yahgrp@poplarware.com>2013-01-21 16:23:28 -0800
commit6a4df4adedc949f7441493e75e8ae73f847bfa10 (patch)
treefe8d2440f8cad411cfccc307eb19f627d6f3e4d9 /modules/system
parent742970e4bc34f7754b63fd0adf0cd1e36870a335 (diff)
downloadbrdo-6a4df4adedc949f7441493e75e8ae73f847bfa10.tar.gz
brdo-6a4df4adedc949f7441493e75e8ae73f847bfa10.tar.bz2
Issue #1893530 by alippai: Document that bundles element is not required for one-bundle entities in hook_entity_info
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.api.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 802f47072..eb527714b 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -154,7 +154,10 @@ function hook_hook_info_alter(&$hooks) {
* the name of the bundle object.
* - bundles: An array describing all bundles for this object type. Keys are
* bundles machine names, as found in the objects' 'bundle' property
- * (defined in the 'entity keys' entry above). Elements:
+ * (defined in the 'entity keys' entry above). This entry can be omitted if
+ * this entity type exposes a single bundle (all entities have the same
+ * collection of fields). The name of this single bundle will be the same as
+ * the entity type. Elements:
* - label: The human-readable name of the bundle.
* - uri callback: Same as the 'uri callback' key documented above for the
* entity type, but for the bundle only. When determining the URI of an