function deploy_logs_overview in Deploy - Content Staging 5
Same name and namespace in other branches
- 6 deploy.logs.admin.inc \deploy_logs_overview()
deployment logs overview page menu callback
1 string reference to 'deploy_logs_overview'
- deploy_menu in ./
deploy.module - Implementation of hook_menu().
File
- ./
deploy.module, line 740
Code
function deploy_logs_overview() {
$result = pager_query("select * from {deploy_log} order by ts desc", 20);
while ($log = db_fetch_array($result)) {
$row = array(
l($log['plan'], 'admin/build/deploy/logs/details/' . $log['dlid']),
$log['username'],
format_date($log['ts'], 'small'),
$log['server'],
);
$rows[] = $row;
}
if (empty($rows)) {
$rows[] = array(
array(
'data' => t('No deployment plans have been pushed.'),
'colspan' => '4',
'class' => 'message',
),
);
}
$header = array(
t('Plan'),
t('Pushed By'),
t('When'),
t('To Server'),
);
$output = theme('table', $header, $rows);
return $output;
}