You are here

function prod_check_update_6100 in Production check & Production monitor 6

Update prod_check_nagios_checks if present.

File

./prod_check.install, line 63

Code

function prod_check_update_6100() {
  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 array();
}