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

Peter Wolanin pwolanin at gmail.com
Thu May 3 19:43:03 UTC 2007

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.


From: "Greg Knaddison - GVS" <Greg at GrowingVentureSolutions.com>
To: development at drupal.org
Date: Thu, 3 May 2007 09:03:37 -0600
Subject: Re: [development] low hanging fruit for Drupal 6: variable defaults
On 5/3/07, Gabor Hojtsy <gabor at hojtsy.hu> wrote:
> **We need a central place to define variable defaults**

Why can't that central place be the variable table?

We could remove the second argument to variable_get and refactor some
code to do the variable_set at install time which eliminates the need
for the defaults in the variable_get() calls themselves.

More information about the development mailing list