function deploy_server_overview in Deploy - Content Staging 5
Same name and namespace in other branches
- 6 deploy.servers.admin.inc \deploy_server_overview()
deployment servers overview page menu callback
1 string reference to 'deploy_server_overview'
- deploy_menu in ./
deploy.module - Implementation of hook_menu().
File
- ./
deploy.module, line 272
Code
function deploy_server_overview() {
$header = array(
t('Name'),
t('URL'),
array(
'data' => t('Operations'),
'colspan' => 2,
),
);
$result = db_query("select * from {deploy_servers}");
while ($row = db_fetch_array($result)) {
$row = array(
check_plain($row['description']),
check_plain($row['url']),
l(t('edit'), 'admin/build/deploy/server/' . $row['sid']),
l(t('delete'), 'admin/build/deploy/delete/server/' . $row['sid']),
);
$rows[] = $row;
}
if (empty($rows)) {
$rows[] = array(
array(
'data' => t('No deployment servers available.'),
'colspan' => '4',
'class' => 'message',
),
);
}
$output = theme('table', $header, $rows);
$output .= l(t("Add a New Server"), "/admin/build/deploy/server/add", array());
return $output;
}