Closed (fixed)
Project:
Scheduler
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Jan 2009 at 13:40 UTC
Updated:
3 Jan 2014 at 00:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
eric-alexander schaefer commentedYou are right. We should have an uninstall procedure.
Comment #2
eric-alexander schaefer commentedHere is a patch with the uninstall function. Please review.
Comment #3
jonathan1055 commentedLooks good. Two minor points:
(a) why is it necessary to delete the 'scheduler_date_format' variable explicitly, when it would appear that the db_query will delete this anyway?
(b) when the patch was applied I got the message 'stripping trailing CRs from patch'. It worked fine, though.
Jonathan
Comment #4
eric-alexander schaefer commenteda) Originally I wanted to delete all variables via
variable_del().b) I diff'ed with eclipse in Windows. I guess you patched with something unixey?
I want to make some changes to this anyways. Larry Garfield pointed out it would be better to track removed node types via
hook_node_type()and remove their configuration variables imediately ('scheduler_NODETYPE'and'scheduler_touch_NODETYPE'). On uninstall only the variables regarding the remaining node types need to be removed (e.g. vianode_get_types()). Sound much better and cleaner to me. I'll try it later today.Thanks for testing.
Comment #5
eric-alexander schaefer commentedCommitted: http://drupal.org/cvs?commit=199040
Comment #6
eric-alexander schaefer commentedTrying to keep 5.x in sync: http://drupal.org/cvs?commit=199044