You are here

function bakery_boot in Bakery Single Sign-On System 7.4

Same name and namespace in other branches
  1. 6.2 bakery.module \bakery_boot()
  2. 7.2 bakery.module \bakery_boot()
  3. 7.3 bakery.module \bakery_boot()

Implements hook_boot().

File

./bakery.module, line 108

Code

function bakery_boot() {

  // Directly include the composer autoload since we need
  // it in this early hook.
  $loader = @(include_once __DIR__ . '/vendor/autoload.php');
  if (!$loader) {

    // Fail and don't try to run bakery code.
    return;
  }
  _bakery_taste_chocolatechip_cookie();
}