I am working on writing a module for a client who has a large amount of data split across several tables that have essentially the same structure, but different names, and because of this I often find myself having to generate dynamic table names to access these tables. Currently I have to validate the user-supplied part of the table name, then run the table name through db_escape_table() to ensure that it contains no bad characters.
I am trying to find some good tool for debugging in Drupal. Just want to know what tools people are using for debugging in drupal. Hope someone can give some advise. Thanks
Where can I find the definition of Drupal site variables?
Sometime in the code I'd like to use
- the site address (http://...)
- the user logged (name and email)
- the main admin user (name an email)
- other base info.
I don't know how these vars are named (except $user that I see in some code, but I never know what are the variable fields).