Closed (fixed)
Project:
Advanced Poll
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2007 at 10:16 UTC
Updated:
14 Dec 2007 at 14:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
ChrisKennedy commentedWhat's your reasoning?
Comment #2
ChrisKennedy commentedAlso, what do other good modules do?
Comment #3
anders.fajerson commentedThe reasonig was mainly that we didn't have to remember including variables to the install file every time we added them, and that it would be shorter code. We have quite a few variables now. But, on the other hand, variables is not added that often so we might as well write them out.
The main point though is that we should remove all variables.
Comment #4
anders.fajerson commentedHere is a patch with uses variable_del(). The other option is to simply use
db_query("DELETE FROM {variable} WHERE name LIKE 'advpoll_%'");(used by fivestar). I'm not sure which I prefer, but I'm leaning towards the approach used in this patch.Comment #5
ChrisKennedy commentedAh now I see what you mean about all the content type vars.
I also prefer using variable_del().
This patch sounds good, I would just abstract out 'advpoll_' because it's at the beginning of every content type variable and will be in any new variable we add. It'll make the list a lot shorter too.
Comment #6
anders.fajerson commentedYes, of course. New patch with shorter list.
Comment #7
ChrisKennedy commentedwoot
Comment #8
anders.fajerson commentedThanks. Fixed: http://drupal.org/cvs?commit=89780
Comment #9
anders.fajerson commentedComment #10
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.