You are here

function tableofcontents_schema in Table of Contents 7

Same name and namespace in other branches
  1. 6.3 tableofcontents.install \tableofcontents_schema()
  2. 7.2 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 keys' => array(
      'nid',
    ),
  );
  return $schema;
}