function devel_set_handler

Same name in other branches
  1. 7.x-1.x devel.module \devel_set_handler()
  2. 8.x-1.x devel.module \devel_set_handler()
  3. 4.x devel.module \devel_set_handler()
  4. 5.x devel.module \devel_set_handler()
1 call to devel_set_handler()
devel_init in ./devel.module
Implementation of hook_init().

File

./devel.module, line 400

Code

function devel_set_handler($handler) {
    switch ($handler) {
        case DEVEL_ERROR_HANDLER_STANDARD:
            // do nothing
            break;
        case DEVEL_ERROR_HANDLER_BACKTRACE:
        case DEVEL_ERROR_HANDLER_BACKTRACE_AND_MESSAGE:
            if (has_krumo()) {
                set_error_handler('backtrace_error_handler');
            }
            break;
        case DEVEL_ERROR_HANDLER_NONE:
            restore_error_handler();
            break;
    }
}