function taxonomy_menu_schema in Taxonomy menu 6.2
Same name and namespace in other branches
- 8 taxonomy_menu.install \taxonomy_menu_schema()
- 6.3 taxonomy_menu.install \taxonomy_menu_schema()
- 7.2 taxonomy_menu.install \taxonomy_menu_schema()
- 7 taxonomy_menu.install \taxonomy_menu_schema()
Implementation of hook_schema().
File
- ./
taxonomy_menu.install, line 41 - Install and uninstall all required databases. Incremental database updates.
Code
function taxonomy_menu_schema() {
$schema['taxonomy_menu'] = array(
'description' => 'Links a taxonomy term to a menu item.',
'fields' => array(
'mlid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'The taxonomy terms {menu_link}.mlid.',
),
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'Tid that is linked to the mlid.',
),
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'Vid for the tid.',
),
),
'primary key' => array(
'mlid',
'tid',
),
'indexes' => array(
'vid' => array(
'vid',
),
),
);
return $schema;
}