You are here

function _debug_echo in Advertisement 5.2

Same name and namespace in other branches
  1. 5 adserve.inc \_debug_echo()
  2. 6.3 adserve.inc \_debug_echo()
  3. 6 adserve.inc \_debug_echo()
  4. 6.2 adserve.inc \_debug_echo()
  5. 7 adserve.inc \_debug_echo()

Dump debug message to screen; set custom error handler.

25 calls to _debug_echo()
adserve_bootstrap in ./adserve.inc
Include the necessary files and call the Drupal bootstrap.
adserve_cache in ./adcache.inc
Wrapper for calling adserve_cache functions.
adserve_cache_display in ./adcache.inc
Default function for displaying advertisements. This is not generally replaced by ad cache modules.
adserve_cache_display_ad in ./adcache.inc
Load and display an advertisement directly from the database.
adserve_cache_get_ad_ids in ./adcache.inc
Default wrapper function for displaying advertisements. This generally is not replaced by ad caches modules.

... See full list

File

./adserve.inc, line 209

Code

function _debug_echo($text) {
  static $error_handler = FALSE;
  if (adserve_variable('debug')) {
    if (!$error_handler) {
      set_error_handler('_debug_error_handler');
      $error_handler = TRUE;
    }
    echo "{$text}<br />\n";
  }
}