You are here

function adserve_cache_validate in Advertisement 6.3

Same name and namespace in other branches
  1. 5.2 adcache.inc \adserve_cache_validate()
  2. 6.2 adcache.inc \adserve_cache_validate()
  3. 7 adcache.inc \adserve_cache_validate()

Validate aids.

File

./adcache.inc, line 281

Code

function adserve_cache_validate($aids, $displayed, $hostid) {
  $valid = array();
  foreach ($aids as $aid) {
    if (!in_array($aid, $displayed)) {
      $valid[] = $aid;
    }
  }
  return $valid;
}