function _flexiform_get_bundle in Flexiform 7
Get the bundle for an entity type and entity
File
- includes/
flexiform.flexiform.inc, line 392 - flexiform.flexiform.inc Helper function for embedding the fields into the flexiform in an arbitrary order
Code
function _flexiform_get_bundle($entity_type, $entity) {
$bundle_key = _flexiform_get_bundle_key($entity_type);
if (!$bundle_key) {
return $entity_type;
}
else {
return $entity->{$bundle_key};
}
}