function prod_check_update_7100 in Production check & Production monitor 7
Update prod_check_nagios_checks settings if present.
File
- ./
prod_check.install, line 63
Code
function prod_check_update_7100() {
if ($checks = variable_get('prod_check_nagios_checks', FALSE)) {
$prefix = '_prod_check_';
foreach ($checks as $set => &$calls) {
foreach ($calls as $key => &$function) {
if (stripos($function, $prefix) === FALSE) {
$function = $prefix . $function;
}
}
}
variable_set('prod_check_nagios_checks', $checks);
return t('Successfully updated prod_check_nagios_checks settings.');
}
return t('No prod_check_nagios_checks found that needed an update.');
}