You are here

function _emaillog_get_debug_info_callbacks in Logging and alerts 7.2

Same name and namespace in other branches
  1. 8 emaillog/emaillog.module \_emaillog_get_debug_info_callbacks()
  2. 6.2 emaillog/emaillog.module \_emaillog_get_debug_info_callbacks()
  3. 2.0.x emaillog/emaillog.module \_emaillog_get_debug_info_callbacks()

Returns array of available additional debug information for email alerts.

3 calls to _emaillog_get_debug_info_callbacks()
emaillog_admin_settings in emaillog/emaillog.admin.inc
Returns admin settings form.
emaillog_admin_settings_submit in emaillog/emaillog.admin.inc
Saves additional debug info from submitted admin settings form.
emaillog_watchdog in emaillog/emaillog.module
Implements hook_watchdog().

File

emaillog/emaillog.module, line 219
Drupal Module: Email Logging and Alerts

Code

function _emaillog_get_debug_info_callbacks() {
  return array(
    'server' => array(
      'callback' => '_emaillog_getGlobalVar',
      'arguments' => array(
        '_SERVER',
      ),
      'label' => '$_SERVER',
    ),
    'env' => array(
      'callback' => '_emaillog_getGlobalVar',
      'arguments' => array(
        '_ENV',
      ),
      'label' => '$_ENV',
    ),
    'request' => array(
      'callback' => '_emaillog_getGlobalVar',
      'arguments' => array(
        '_REQUEST',
      ),
      'label' => '$_REQUEST',
    ),
    'cookie' => array(
      'callback' => '_emaillog_getGlobalVar',
      'arguments' => array(
        '_COOKIE',
      ),
      'label' => '$_COOKIE',
    ),
    'get' => array(
      'callback' => '_emaillog_getGlobalVar',
      'arguments' => array(
        '_GET',
      ),
      'label' => '$_GET',
    ),
    'post' => array(
      'callback' => '_emaillog_getGlobalVar',
      'arguments' => array(
        '_POST',
      ),
      'label' => '$_POST',
    ),
    'session' => array(
      'callback' => '_emaillog_getGlobalVar',
      'arguments' => array(
        '_SESSION',
      ),
      'label' => '$_SESSION',
    ),
    'backtrace' => array(
      'callback' => 'debug_backtrace',
      'arguments' => array(),
      'label' => 'debug_backtrace()',
    ),
    'headers' => array(
      'callback' => 'apache_request_headers',
      'arguments' => array(),
      'label' => 'apache_request_headers()',
    ),
  );
}