You are here

function tft_schema in Taxonomy File Tree 7.2

Same name and namespace in other branches
  1. 7 tft.install \tft_schema()

Implements hook_schema().

File

./tft.install, line 117
Module install logic.

Code

function tft_schema() {
  return array(
    'tft_folder_content_weight' => array(
      'description' => 'Weights of folder child items',
      'fields' => array(
        'id' => array(
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
        ),
        'type' => array(
          'type' => 'varchar',
          'length' => 10,
        ),
        'parent_tid' => array(
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
        ),
        'weight' => array(
          'type' => 'int',
          'not null' => TRUE,
        ),
      ),
    ),
  );
}