You are here

function adserve_bootstrap in Advertisement 5.2

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

Include the necessary files and call the Drupal bootstrap.

6 calls to adserve_bootstrap()
adserve_ad in ./adserve.inc
The main adserve logic.
adserve_cache_increment in ./adcache.inc
Increment action directly in the database.
adserve_cache_open in ./adcache.inc
Default initialization function, fully bootstraps Drupal to gain access to the database.
adserve_counter_image in ./imageserve.inc
Generate a tiny image with GD, used to count when an ad has been displayed on a cached page.
ad_cache_file_rebuild in cache/file/ad_cache_file.inc
Bootstrap drupal, then run ad_cache_file_build() from ad.module which will rebuild all cache files.

... See full list

File

./adserve.inc, line 251

Code

function adserve_bootstrap($bootstrap = NULL) {
  adserve_include_drupal();

  // If no specific bootstrap is specified, do a full bootstrap.
  if (!isset($bootstrap)) {
    $bootstrap = DRUPAL_BOOTSTRAP_FULL;
  }
  _debug_echo("Drupal bootstrap '" . $bootstrap . "'.");
  drupal_bootstrap($bootstrap);
}