diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-01-21 16:23:28 -0800 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-01-21 16:23:28 -0800 |
commit | 6a4df4adedc949f7441493e75e8ae73f847bfa10 (patch) | |
tree | fe8d2440f8cad411cfccc307eb19f627d6f3e4d9 /modules/system | |
parent | 742970e4bc34f7754b63fd0adf0cd1e36870a335 (diff) | |
download | brdo-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.php | 5 |
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 |