You are here

function term_level_entity_metadata_field_get_term in Term Level Field 7

Getter callback for term in term level field.

1 string reference to 'term_level_entity_metadata_field_get_term'
term_level_entity_metadata_callback in ./term_level.module
Entity metadata callback for term_level settings.

File

./term_level.module, line 64
Field type for referencing terms with a level to an entity.

Code

function term_level_entity_metadata_field_get_term($item, array $options, $name, $type, $context) {
  return $item['tid'];
}