You are here

function _flexiform_get_bundle_key in Flexiform 7

Get the bundle key for an entity type

1 call to _flexiform_get_bundle_key()
_flexiform_get_bundle in includes/flexiform.flexiform.inc
Get the bundle for an entity type and entity

File

includes/flexiform.flexiform.inc, line 384
flexiform.flexiform.inc Helper function for embedding the fields into the flexiform in an arbitrary order

Code

function _flexiform_get_bundle_key($entity_type) {
  $info = entity_get_info($entity_type);
  return empty($info['entity keys']['bundle']) ? FALSE : $info['entity keys']['bundle'];
}