function monitoring_force_execution in Monitoring 7
Page callback to clear sensor caches.
1 string reference to 'monitoring_force_execution'
- monitoring_menu in ./
monitoring.module - Implements hook_menu().
File
- ./
monitoring.admin.inc, line 461 - Admin page/form callbacks.
Code
function monitoring_force_execution($sensor_name = NULL) {
if ($sensor_name) {
// If a sensor was passed, reset just that.
SensorRunner::resetCache(array(
$sensor_name,
));
}
else {
// Otherwise reset all.
SensorRunner::resetCache();
}
drupal_goto('admin/reports/monitoring');
}