You are here

tableofcontents.install in Table of Contents 7.2

Same filename and directory in other branches
  1. 6.3 tableofcontents.install
  2. 7 tableofcontents.install

tableofcontents.install

Install the schema used for the node types settings. Uninstall the schema and variables. Updates for people using older versions.

File

tableofcontents.install
View source
<?php

/**
 * @file tableofcontents.install
 *
 * Install the schema used for the node types settings.
 * Uninstall the schema and variables.
 * Updates for people using older versions.
 */

/**
 * Implementation of hook_schema()
 */
function tableofcontents_schema() {
  $schema['cache_tableofcontents'] = drupal_get_schema_unprocessed('system', 'cache');
  $schema['cache_tableofcontents']['description'] = 'Cache table for the Table of Contents module to store pre-generated tables of contents.';
  return $schema;
}

/**
 * Implementation of hook_install()
 */
function tableofcontents_install() {
}

/**
 * Implementation of hook_uninstall()
 */
function tableofcontents_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'tableofcontents_%'");
}

Functions

Namesort descending Description
tableofcontents_install Implementation of hook_install()
tableofcontents_schema Implementation of hook_schema()
tableofcontents_uninstall Implementation of hook_uninstall()