function submenutree_schema in Submenu Tree 7
Same name and namespace in other branches
- 6 submenutree.install \submenutree_schema()
- 7.2 submenutree.install \submenutree_schema()
Implementation of hook_schema().
File
- ./
submenutree.install, line 8
Code
function submenutree_schema() {
$schema['node_submenutree'] = array(
'description' => t('The base table for submenutree'),
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'submenutree_enable' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'submenutree_title' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'submenutree_display' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'submenutree_weight' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'siblingmenutree_enable' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'siblingmenutree_title' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'siblingmenutree_display' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'siblingmenutree_weight' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}