function submenutree_schema in Submenu Tree 7.2
Same name and namespace in other branches
- 6 submenutree.install \submenutree_schema()
- 7 submenutree.install \submenutree_schema()
Implements hook_schema().
File
- ./
submenutree.install, line 10 - Install, update and uninstall functions for the Submenu Tree module.
Code
function submenutree_schema() {
$schema['node_submenutree'] = array(
'description' => t('The base table for submenutree.'),
'fields' => array(
'nid' => array(
'description' => 'The primary identifier for a node.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'submenutree_enable' => array(
'description' => 'The status of sub content associated with this node.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'submenutree_title' => array(
'description' => 'The title for the sub content associated with this node.',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'submenutree_display' => array(
'description' => 'The method of displaying sub content associated with this node.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'submenutree_view_mode' => array(
'description' => 'The view mode of sub content associated with this node.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => 'full',
),
'submenutree_links' => array(
'description' => 'Wheter or not to display links for sub content associated with this node.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'siblingmenutree_enable' => array(
'description' => 'The status of sibling content associated with this node.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'siblingmenutree_title' => array(
'description' => 'The title for the sibling content associated with this node.',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'siblingmenutree_display' => array(
'description' => 'The method of displaying sibling content associated with this node.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'siblingmenutree_view_mode' => array(
'description' => 'The view mode of sibling content associated with this node.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => 'full',
),
'siblingmenutree_links' => array(
'description' => 'Wheter or not to display links for sibling content associated with this node.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}