function _systeminfo_admin_overview_drupal in System Information 7.3
Same name and namespace in other branches
- 6.3 systeminfo.admin.inc \_systeminfo_admin_overview_drupal()
1 call to _systeminfo_admin_overview_drupal()
- systeminfo_admin_overview in ./
systeminfo.admin.inc - Menu callback; displays the overview page.
File
- ./
systeminfo.admin.inc, line 56 - Admin page callbacks for the systeminfo module.
Code
function _systeminfo_admin_overview_drupal() {
$rows = array();
$rows[] = array(
t('Version'),
VERSION,
);
$rows[] = array(
t('Configuration file'),
conf_path() . '/settings.php',
);
$cron_last = variable_get('cron_last');
if (!is_numeric($cron_last)) {
$cron_last = variable_get('install_time', 0);
}
$rows[] = array(
t('Cron maintenance tasks'),
t('Last run !time ago', array(
'!time' => format_interval(REQUEST_TIME - $cron_last),
)),
);
$system_info = system_get_info('module', variable_get('install_profile', 'standard'));
$rows[] = array(
t('Install profile'),
$system_info['name'],
);
$rows[] = array(
t('Install time'),
format_date(variable_get('install_time', 0), 'small'),
);
$rows[] = array(
t('Public file system path'),
variable_get('file_public_path', conf_path() . '/files'),
);
$rows[] = array(
t('Private file system path'),
variable_get('file_private_path', ''),
);
return theme('table', array(
'header' => array(),
'rows' => $rows,
'attributes' => array(
'class' => array(
'systeminfo',
'systeminfo-width50',
),
),
));
}