Variables should be cleaned up upon uninstalling

mr.baileys - September 2, 2009 - 08:21
Project:Cool Aid
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When you uninstall the module, the coolaid_* database tables are dropped, but the coolaid_* variables are left in the system:

  • 'coolaid_existing_help_theme_function'
  • 'coolaid_name'
  • 'coolaid_thickbox'

Good practice would be to clean these up too, especially since it should be possible to uninstall + re-enable to reset a module's state.

Also see hook_uninstall:

Remove any tables or variables that the module sets.

#1

danielb - September 9, 2009 - 02:46
Status:active» fixed

Thank you, fixed.

#2

danielb - September 16, 2009 - 11:56
Status:fixed» needs work

no it's not :/ it will be soon though

#3

danielb - September 30, 2009 - 22:38
Status:needs work» fixed

#4

System Message - October 14, 2009 - 22:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.