function nodehierarchy_schema in Node Hierarchy 6.3
Same name and namespace in other branches
- 6 nodehierarchy.install \nodehierarchy_schema()
- 6.2 nodehierarchy.install \nodehierarchy_schema()
- 7.4 nodehierarchy.install \nodehierarchy_schema()
- 7.2 nodehierarchy.install \nodehierarchy_schema()
Implementation of hook_schema().
1 call to nodehierarchy_schema()
- nodehierarchy_update_6200 in ./
nodehierarchy.install - Update from the 5.x or 6.x-1.x branches.
File
- ./
nodehierarchy.install, line 24 - Install file for nodehierarchy module.
Code
function nodehierarchy_schema() {
$schema['nodehierarchy_menu_links'] = array(
'fields' => array(
'mlid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => "The book page's {menu_links}.mlid.",
),
'nid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => t('The {node}.nid whose parent is being defined.'),
),
),
'primary key' => array(
'mlid',
),
'indexes' => array(
'nid' => array(
'nid',
),
),
);
return $schema;
}