function taxonomy_menu_schema in Taxonomy menu 7.2
Same name and namespace in other branches
- 8 taxonomy_menu.install \taxonomy_menu_schema()
- 6.3 taxonomy_menu.install \taxonomy_menu_schema()
- 6.2 taxonomy_menu.install \taxonomy_menu_schema()
- 7 taxonomy_menu.install \taxonomy_menu_schema()
Implements hook_schema().
1 call to taxonomy_menu_schema()
- taxonomy_menu_update_7200 in ./
taxonomy_menu.install - Update database schema to handle languages.
File
- ./
taxonomy_menu.install, line 38 - Install and uninstall all required databases. Also do 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.',
),
'language' => array(
'description' => 'Language code, e.g. ’de’ or ’en-US’.',
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => LANGUAGE_NONE,
),
),
'primary key' => array(
'mlid',
'tid',
'language',
),
'indexes' => array(
'vid' => array(
'vid',
),
),
);
return $schema;
}