You are here

function monitoring_sensor_thresholds_ajax in Monitoring 7

Ajax callback for threshold settings.

1 string reference to 'monitoring_sensor_thresholds_ajax'
SensorThresholds::settingsForm in lib/Drupal/monitoring/Sensor/SensorThresholds.php
Gets settings form for a specific sensor.

File

./monitoring.admin.inc, line 497
Admin page/form callbacks.

Code

function monitoring_sensor_thresholds_ajax($form, &$form_state) {
  $sensor_name = $form_state['sensor_name'];
  $form_key = monitoring_sensor_settings_key($sensor_name);
  return $form[$form_key]['thresholds'];
}