You are here

function ad_cache_memcache_adserve_exit_text in Advertisement 6

Same name and namespace in other branches
  1. 5.2 cache/memcache/ad_cache_memcache.inc \ad_cache_memcache_adserve_exit_text()
  2. 5 cache/memcache/ad_cache_memcache.inc \ad_cache_memcache_adserve_exit_text()

Allow external exit text.

File

cache/memcache/ad_cache_memcache.inc, line 385
Memcache include.

Code

function ad_cache_memcache_adserve_exit_text() {
  $cache = array();
  if ($exit_text_func = ad_cache_memcache_hook($cache, 'include_file_exit_text', 'include_func_exit_text')) {
    _debug_echo("Memcache: adserve_exit_text: invoking '{$exit_text_func}()'");
    if (function_exists($exit_text_func)) {
      return $exit_text_func();
    }
    else {
      _debug_echo("Memcache: adserve_exit_text: '{$exit_text_func}()' not found");
    }
  }
  else {
    _debug_echo("Memcache: adserve_exit_text: no exit_text function defined");
  }
}