You are here

function taxonomy_term_depth_schema_alter in Taxonomy Term Depth 7

Implements hook_schema_alter()

File

./taxonomy_term_depth.install, line 36

Code

function taxonomy_term_depth_schema_alter(&$schema) {
  $schema['taxonomy_term_data']['fields']['depth'] = array(
    'type' => 'int',
    'size' => 'tiny',
    'description' => 'Taxonomy depth',
    'default' => NULL,
  );
  $schema['taxonomy_term_data']['indexes'] = array(
    'depth' => array(
      'depth',
      'tid',
    ),
  );
}