You are here

function deploy_logs_details in Deploy - Content Staging 5

Same name and namespace in other branches
  1. 6 deploy.logs.admin.inc \deploy_logs_details()

view the results of a push

1 string reference to 'deploy_logs_details'
deploy_menu in ./deploy.module
Implementation of hook_menu().

File

./deploy.module, line 771

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);
}