Update via Garrett Albright (see comments)
Just a quick tip for managing variables in a Drupal module. Please prefix your variables with your module name. For example:
This ensures that another module won’t override your variable, or your module won’t do the same thing. Pretty simple. But what is also nice, is that you can clean up after your module a lot easier in the uninstall hook:
Please note that the above convention could cause problems if your module name is something like content_permissions
and then the content module (CCK) defines a variable with a conflicting name. All the more reason to make your module names more unique and without underscores.
Old code that needlessly queries the database: