You are here

function tableofcontents_schema in Table of Contents 6.3

Same name and namespace in other branches
  1. 7.2 tableofcontents.install \tableofcontents_schema()
  2. 7 tableofcontents.install \tableofcontents_schema()

Implementation of hook_schema()

1 call to tableofcontents_schema()
tableofcontents_update_6000 in ./tableofcontents.install
Implementation of hook_update_#()

File

./tableofcontents.install, line 14
tableofcontents.install

Code

function tableofcontents_schema() {
  $schema['tableofcontents_node_toc'] = array(
    'description' => 'Extra info on nodes linked to the toc',
    'fields' => array(
      'nid' => array(
        'description' => 'The node identifier.',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'toc_automatic' => array(
        'description' => 'The automatic mode of the table of contents for that node. (null or 0, ignore)',
        'type' => 'int',
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}