You are here

function deploy_get_servers in Deploy - Content Staging 6

Get a list of all deployment plan servers.

Return value

$servers Associative array of all deployment plan servers ('sid' => 'description').

2 calls to deploy_get_servers()
deploy_get_server_form in ./deploy.module
Standard form with server list. Used in many places.
drush_deploy in includes/deploy.drush.inc
Deploy a plan from the command line with drush.

File

./deploy.module, line 487
Deployment API which enables modules to deploy items between servers.

Code

function deploy_get_servers() {
  $result = db_query("SELECT * FROM {deploy_servers} ORDER BY description");
  $servers = array();
  while ($server = db_fetch_array($result)) {
    $servers[$server['sid']] = $server['description'];
  }
  return $servers;
}