You are here

function rdfx_init in RDF Extensions 7.2

Implements hook_init().

File

./rdfx.module, line 12
Extends the RDF API of Drupal core to support more RDF seralizations formats other RDF capabilities.

Code

function rdfx_init() {

  // Get the path to the library.
  if (module_exists('libraries')) {
    $path = libraries_get_path('ARC2') . '/arc';
  }
  else {
    $path = drupal_get_path('module', 'rdfx') . '/vendor/arc';
  }

  // Attempts to load the ARC2 library, if available.
  if (!class_exists('ARC2') && file_exists($path . '/ARC2.php')) {
    @(include_once $path . '/ARC2.php');
  }
  module_load_include('inc', 'rdfx', 'rdfx.terms');
  module_load_include('inc', 'rdfx', 'rdfx.import');
  module_load_include('inc', 'rdfx', 'rdfx.query');
}