You are here

function devel_get_handlers in Devel 7

Same name and namespace in other branches
  1. 8.3 devel.module \devel_get_handlers()
  2. 8 devel.module \devel_get_handlers()
  3. 8.2 devel.module \devel_get_handlers()
  4. 4.x devel.module \devel_get_handlers()

Gets error handlers.

Return value

array

3 calls to devel_get_handlers()
backtrace_error_handler in ./devel.module
Displays backtrace showing the route of calls to the current error.
devel_admin_settings in ./devel.admin.inc
Form constructor for the settings form.
devel_init in ./devel.module
Implements hook_init().

File

./devel.module, line 606
This module holds functions useful for Drupal development.

Code

function devel_get_handlers() {
  $error_handlers = variable_get('devel_error_handlers', array(
    DEVEL_ERROR_HANDLER_STANDARD => DEVEL_ERROR_HANDLER_STANDARD,
  ));
  if (!empty($error_handlers)) {
    unset($error_handlers[DEVEL_ERROR_HANDLER_NONE]);
  }
  return $error_handlers;
}