I'm was curious as to which hook in my module should I set variables with variable_set(variable_name, 0);.

I know I can use this at anytime, but I want to set it with default values just once. If anyone has some insight, let me know.

Comments

mdixoncm’s picture

You don't need to explicitly assign default values to your variables as the variable_get function takes a default value as one of the params.

Cheers,

Mike

Like books? Check out booktribes the new (Drupal based) community for book lovers
from Computerminds

jonathanchris’s picture

Thanks, pretty much after writing that post I kind of realized that. It's just been one of those days.
Anyway, thanks again for the quick reply.