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. -Peter --- From: "Greg Knaddison - GVS" <Greg@GrowingVentureSolutions.com> To: development@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@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.