From 57d40215f82c4bc280456d3831b652c1ff9fdf90 Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Mon, 30 May 2011 20:46:08 -0700
Subject: [PATCH] Issue #1019374 by Jody Lynn: Delete book variables on
 hook_uninstall().

---
 modules/book/book.install | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/book/book.install b/modules/book/book.install
index 1bd094c230e5..e92aca6e43ce 100644
--- a/modules/book/book.install
+++ b/modules/book/book.install
@@ -17,6 +17,10 @@ function book_install() {
  * Implements hook_uninstall().
  */
 function book_uninstall() {
+  variable_del('book_allowed_types');
+  variable_del('book_child_type');
+  variable_del('book_block_mode');
+
   // Delete menu links.
   db_delete('menu_links')
     ->condition('module', 'book')
-- 
GitLab