create content > book doesn't go away after disabling module

daouverson2 - March 13, 2008 - 16:12
Project:Drupal
Version:7.x-dev
Component:book.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:by design
Description

Under create content > book, the link doesn't go away, even after disabling and uninstalling module. I'm running a brand new version of 6-dev w/i a typical LAMP environment.

#1

daouverson2 - March 13, 2008 - 16:15
Title:create content > book doesn't go away after disbaling module» create content > book doesn't go away after disabling module

#2

keith.smith - March 13, 2008 - 16:28

This is because the book content type is added in book.install, rather than, say, through book_node_info or something. Poll module, for instance, uses poll_node_info to add its content type, while book module uses _book_install_type_create().

I'm not really sure why, but I presume there is a reason book module is doing it this way.

#3

Ognyan Kulev - March 27, 2008 - 14:33

subscribe

#4

Aaron Stanush@d... - August 6, 2008 - 18:05
Version:6.x-dev» 6.3

I'm having the same problem here in v6.3, funny that this core module doesn't act like this in Drupal 5.x

One workaround is to delete the content type manually at /admin/content/types

#5

Gurpartap Singh - January 15, 2009 - 15:10
Version:6.3» 7.x-dev

"create content > book doesn't go away" because book.module doesn't remove that content type upon uninstall. There might be content of type "book" on your website which you don't want to be deleted. If you do, you can remove the content type and then the nodes. I believe that's how this works currently. But I won't close this issue in search of a better solution.

#6

bsherwood - February 11, 2009 - 14:59
Status:active» by design

Isn't this the best solution?

Book module creates the content type when it is installed, but doesn't delete the content type on disable/uninstall because it would blindly delete content. This should be the desired solution.

Drupal allows you to manually delete the content type after book module is disabled by going to admin/content/types. Taking this extra step assures that website admin's are purposely deleting content as opposed to it being deleted without the admin's approval.

 
 

Drupal is a registered trademark of Dries Buytaert.