function _relation_get_bundle_label in Relation 7
Return the label for a given entity type and bundle.
Parameters
string $entity_type: The entity type.
string $entity_bundle: The entity bundle.
Return value
string The label of the given entity type and bundle.
2 calls to _relation_get_bundle_label()
- RelationEntityCollectorTestCase::testEntityCollector in relation_entity_collector/
tests/ relation_entity_collector.test - Add relations to Node 1 and to Node 3 and then check that they are related.
- relation_entity_collector in relation_entity_collector/
relation_entity_collector.module - The entity_collector form.
File
- ./
relation.module, line 1041 - Describes relations between entities.
Code
function _relation_get_bundle_label($entity_type, $entity_bundle) {
$entity_info = entity_get_info($entity_type);
return $entity_info['bundles'][$entity_bundle]['label'];
}