You are here

function ajax_error_behavior_menu in AJAX Error Behavior 7

Implements hook_init().

File

./ajax_error_behavior.module, line 10
Code to provide configuration for different ajax error behaviors.

Code

function ajax_error_behavior_menu() {
  $items = array();
  $items['ajax_error_behavior/watchdog'] = array(
    'title' => 'Save to watchdog',
    'description' => 'Save AJAX error to the watchdog.',
    'access callback' => TRUE,
    'page callback' => 'ajax_error_behavior_log',
    'type' => MENU_CALLBACK,
  );
  return $items;
}