You are here

function get_bundle_field_label_info in Entity Construction Kit (ECK) 7.3

Same name and namespace in other branches
  1. 7 eck.bundle.inc \get_bundle_field_label_info()
  2. 7.2 eck.bundle.inc \get_bundle_field_label_info()

Helper function to determine if an entity wants to define a field as lable.

1 call to get_bundle_field_label_info()
eck__bundle__field_autocomplete in ./eck.bundle.inc
Autocomplete functionality for entities using field labels.

File

./eck.bundle.inc, line 475

Code

function get_bundle_field_label_info($entity_type, $bundle) {
  $info = entity_get_info();
  if (array_key_exists('field label', $info[$entity_type->name]['bundles'][$bundle->name])) {
    return $info[$entity_type->name]['bundles'][$bundle->name]['field label'];
  }
  else {
    return NULL;
  }
}