You are here

term_level.install in Term Level Field 7

File

term_level.install
View source
<?php

/**
 * Implements hook_field_schema().
 */
function term_level_field_schema($field) {
  return array(
    'columns' => array(
      'tid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => FALSE,
      ),
      'level' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => FALSE,
      ),
    ),
    'indexes' => array(
      'tid' => array(
        'tid',
      ),
    ),
  );
}

Functions

Namesort descending Description
term_level_field_schema Implements hook_field_schema().