function toc_node_schema in TOC Node 7
Implementation of hook_schema().
File
- ./
toc_node.install, line 11 - Set up database table used to store Table Of Contents settings for individual nodes.
Code
function toc_node_schema() {
$schema['toc_node'] = array(
'description' => t("Store Table Of Contents settings for individual nodes."),
'fields' => array(
'nid' => array(
'description' => t("ID key of node."),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'disp-width' => '10',
),
'style' => array(
'description' => t("TOC display style."),
'type' => 'varchar',
'length' => 10,
'not null' => TRUE,
'default' => 'none',
),
'level' => array(
'description' => t("TOC maximum level depth."),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'disp-width' => '10',
),
'back_links' => array(
'description' => t("Back to top links display."),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'disp-width' => '10',
),
),
);
return $schema;
}