You are here

function _hosting_get_db_servers in Hosting 5

Small helper function to get web servers.

2 calls to _hosting_get_db_servers()
hosting_db_server_hosting_summary in db_server/hosting_db_server.module
hosting_site_form in site/hosting_site.module
Implementation of hook_form

File

db_server/hosting_db_server.module, line 108

Code

function _hosting_get_db_servers() {
  $return = array();
  $result = db_query("SELECT nid, title FROM {node} WHERE type='db_server' AND status=1");
  while ($server = db_fetch_object($result)) {
    $return[$server->nid] = $server->title;
  }
  return $return;
}