You are here

function moopapi_boot in Module Object Oriented Programming API 7.2

Same name and namespace in other branches
  1. 6.2 moopapi.module \moopapi_boot()
  2. 6 moopapi.module \moopapi_boot()
  3. 7 moopapi.module \moopapi_boot()

Implements hook_boot().

1 call to moopapi_boot()
MoopapiWebTestCase::setUp in tests/moopapi.test
Sets up a Drupal site for running functional and integration tests.

File

./moopapi.module, line 6

Code

function moopapi_boot() {

  /**
   * This hook is absolutely necessary to force drupal to load this module early on.
   * All contrib oop modules will fail to execute properly if we fail to load this module before them.
   */

  // Register itself.
  module_invoke('moopapi', 'register', 'moopapi');

  // Include Patchwork as early as possible to empower redefining.
  $patchwork_path = DRUPAL_ROOT . '/' . 'sites/all/libraries/patchwork/Patchwork.php';
  if (file_exists($patchwork_path)) {
    include_once $patchwork_path;
  }
}