You are here

function adserve_invoke_file in Advertisement 6.2

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

Invoke a function in the specified file.

File

./adserve.inc, line 203
Configuration.

Code

function adserve_invoke_file($function, $arg1 = NULL, $arg2 = NULL) {
  $output = '';
  if (function_exists($function)) {
    $output = $function($arg1, $arg2);
  }
  else {
    if (adserve_variable('debug')) {
      echo "Function '{$function}' does not exist.<br />\n";
    }
  }
  return $output;
}