Drupal Association members fund grants that make connections all over the world.
I recently installed Drupal with a multi-site configuration (following http://drupal.org/getting-started/6/install/multi-site). The settings for my main drupal database are in sites/default/settings.php, the settings for my subdomain1 database are in sites/subdomain1.example.com/settings.php, etc...
I have a script that returns all the node types contained in a drupal database. Essentially:
//... chdir('/path/to/drupal'); require_once('includes/bootstrap.inc'); drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); $results = db_query('select distinct type as type from node'); //...
It returns the types contained in the main drupal database (the one I refer to in sites/default/settings.php), the problem is that I want the types contained in a subdomain Drupal database (ex: the one referred in sites/subdomain1.example.com/settings.php).
Can you help me with that?