You are here

function taxonomy_term_depth_entity_property_info in Taxonomy Term Depth 7

Implements hook_entity_property_info().

File

./taxonomy_term_depth.module, line 15
Provides some custom functionality.

Code

function taxonomy_term_depth_entity_property_info() {
  $info = array();
  $properties =& $info['taxonomy_term']['properties'];
  $properties['depth'] = array(
    'label' => t("Term Depth"),
    'type' => 'integer',
    'description' => t("The depth of this term inside the taxonomy tree."),
    'schema field' => 'depth',
  );
  return $info;
}