function _debug_echo in Advertisement 5.2
Same name and namespace in other branches
- 5 adserve.inc \_debug_echo()
- 6.3 adserve.inc \_debug_echo()
- 6 adserve.inc \_debug_echo()
- 6.2 adserve.inc \_debug_echo()
- 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.
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";
}
}