[development] low hanging fruit for Drupal 6: variable defaults

Dries Buytaert dries.buytaert at gmail.com
Thu May 3 21:08:06 UTC 2007


On 03 May 2007, at 21:43, Peter Wolanin wrote:
> I don't think the suggestion below makes sense (setting variable
> defaults via hook_install), at least if we assume that the way to
> reset a module setting is to delete the corresponding variable.

Setting a variable on hook_install sounds clumsy, especially when we  
have /dynamic/ variables of the form:

   variable_get($node->type ."_something", ...)

You simply don't know at install time, what variables might become  
available later on ...

--
Dries Buytaert  ::  http://www.buytaert.net/



More information about the development mailing list