function _prod_check_update_status in Production check & Production monitor 6
Same name and namespace in other branches
- 7 prod_check.module \_prod_check_update_status()
File
- ./
prod_check.module, line 1543
Code
function _prod_check_update_status($caller = 'internal') {
$check = array();
$title = 'Update status';
$path = 'admin/reports/updates';
if ($caller != 'internal') {
$path = PRODCHECK_BASEURL . $path;
}
$check['prod_check_update_status'] = array(
'#title' => t($title),
'#state' => !module_exists('update'),
'#severity' => $caller == 'nagios' ? NAGIOS_STATUS_WARNING : PROD_CHECK_REQUIREMENT_WARNING,
'#value_ok' => t('Disabled'),
'#value_nok' => t('Enabled'),
'#description_ok' => t('Your settings are OK for production use.'),
'#description_nok' => t('You have enabled the !link module. It would be better to turn this off on production, contrary to what Drupal core claims, and keep it running on development. Updating and testing should happen on development before deploying to production anyway.', prod_check_link_array($title, $path)),
'#nagios_key' => 'UPD',
'#nagios_type' => 'state',
);
return prod_check_execute_check($check, $caller);
}