function deploy_logs_details in Deploy - Content Staging 6
Same name and namespace in other branches
- 5 deploy.module \deploy_logs_details()
Display the details of a single deployment.
Parameters
$dlid: Unique identifier for the deployment log details we are displaying.
1 string reference to 'deploy_logs_details'
- deploy_menu in ./
deploy.module - Implementation of hook_menu().
File
- ./
deploy.logs.admin.inc, line 45 - Page handlers for deploy logs admin.
Code
function deploy_logs_details($dlid) {
$rows = array();
$styles = array(
'Error' => 'background-color: #fcc',
'Not Sent' => 'background-color: #ffd',
'Success' => '',
);
$result = db_query("SELECT * FROM {deploy_log_details} WHERE dlid = %d", $dlid);
while ($log_detail = db_fetch_array($result)) {
$row = array(
'data' => array(
$log_detail['module'],
$log_detail['description'],
$log_detail['result'],
$log_detail['message'],
),
'style' => $styles[$log_detail['result']],
);
$rows[] = $row;
}
$header = array(
t('Module'),
t('Description'),
t('Result'),
t('Message'),
);
return theme('table', $header, $rows);
}