function tft_schema in Taxonomy File Tree 7
Same name and namespace in other branches
- 7.2 tft.install \tft_schema()
Implements hook_schema().
File
- ./
tft.install, line 133 - Module install logic.
Code
function tft_schema() {
return array(
'tft_tid_og_nid' => array(
'description' => 'Relationship between a term and an og',
'fields' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'og_nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
),
'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,
),
),
),
'tft_archive_restore' => array(
'description' => 'Logs previous element position before being archived',
'fields' => array(
'id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'type' => array(
'type' => 'varchar',
'length' => 10,
),
'previous_parent_tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'og_nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
),
);
}