You are here

function _hosting_get_web_servers in Hosting 5

Small helper function to get web servers.

2 calls to _hosting_get_web_servers()
hosting_platform_form in platform/hosting_platform.module
Implementation of hook_form().
hosting_web_server_hosting_summary in web_server/hosting_web_server.module

File

web_server/hosting_web_server.module, line 156
Web server node type is defined here.

Code

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