You are here

function dba_report_header in Database Administration 7

Display report header.

1 call to dba_report_header()
dba_report_page in ./dba.report.inc
Display database report.

File

./dba.report.inc, line 105

Code

function dba_report_header($data) {
  $output = array();
  $date = date('d-M-Y H:m:s');
  $version = sprintf('%d.%d.%d', $data->version->major, $data->version->minor, $data->version->patch);
  $output[] = t('!database !version uptime !uptime !date', array(
    '!database' => $data->name,
    '!version' => sprintf('%-16s', $version),
    '!uptime' => sprintf('%-12s', $data->uptime),
    '!date' => sprintf('%24s', $date),
  ));
  return $output;
}