You are here

function toc_node_uninstall in TOC Node 7

Implements hook_uninstall().

File

./toc_node.install, line 52
Set up database table used to store Table Of Contents settings for individual nodes.

Code

function toc_node_uninstall() {
  $types = (array) node_type_get_types();
  foreach ($types as $type => $type_info) {
    variable_del('toc_node_enabled_' . $type);
    variable_del('toc_node_level_' . $type);
    variable_del('toc_node_styles_' . $type);
    variable_del('toc_node_style_default_' . $type);
    variable_del('toc_node_back_to_top_links_' . $type);
  }
}