function ajax_error_behavior_log in AJAX Error Behavior 7
1 string reference to 'ajax_error_behavior_log'
- ajax_error_behavior_menu in ./
ajax_error_behavior.module - Implements hook_init().
File
- ./
ajax_error_behavior.module, line 24 - Code to provide configuration for different ajax error behaviors.
Code
function ajax_error_behavior_log() {
$threshold = variable_get('ajax_error_behavior_watchdog_threshold', 10);
$time_window = variable_get('ajax_error_behavior_watchdog_window', 3600);
flood_register_event('ajax_error_behavior_watchdog', $time_window);
if (flood_is_allowed('ajax_error_behavior_watchdog', $threshold, $time_window)) {
watchdog('ajax_error_behavior', 'AJAX Error: %error', array(
'%error' => $_POST['message'],
));
}
drupal_exit();
}