| 8 |
This program is distributed in the hope that it will be useful, |
This program is distributed in the hope that it will be useful, |
| 9 |
but WITHOUT ANY WARRANTY. See the LICENSE.txt file for more details. |
but WITHOUT ANY WARRANTY. See the LICENSE.txt file for more details. |
| 10 |
|
|
| 11 |
$Id$ |
$Id: arc_rdf.module,v 1.2.2.1 2008/04/24 17:52:47 febbraro Exp $ |
| 12 |
*/ |
*/ |
| 13 |
|
|
| 14 |
function arc_rdf_requirements($phase) { |
function arc_rdf_requirements($phase) { |
| 48 |
* http://arc.semsol.org/home |
* http://arc.semsol.org/home |
| 49 |
*/ |
*/ |
| 50 |
function arc_rdf_init() { |
function arc_rdf_init() { |
| 51 |
|
// ensure we are not serving a cached page |
| 52 |
|
if (function_exists('drupal_get_path')) { |
| 53 |
|
$path = realpath(drupal_get_path('module', 'arc_rdf')); |
| 54 |
|
|
| 55 |
$path = realpath(drupal_get_path('module', 'arc_rdf')); |
define('RDF_ARC2_PATH', $path .'/arc2'); |
| 56 |
|
define('RDF_FORMAT', variable_get('rdf_format', 'rdf+json')); |
| 57 |
|
define('RDF_SITE_URI', url(NULL, array('absolute' => TRUE))); |
| 58 |
|
|
| 59 |
define('RDF_ARC2_PATH', $path .'/arc2'); |
if (!class_exists('ARC2') && file_exists(RDF_ARC2_PATH . '/ARC2.php')) { |
| 60 |
define('RDF_FORMAT', variable_get('rdf_format', 'rdf+json')); |
require_once RDF_ARC2_PATH .'/ARC2.php'; |
| 61 |
define('RDF_SITE_URI', url(NULL, array('absolute' => TRUE))); |
} |
|
|
|
|
if (!class_exists('ARC2') && file_exists(RDF_ARC2_PATH . '/ARC2.php')) { |
|
|
require_once RDF_ARC2_PATH .'/ARC2.php'; |
|
| 62 |
} |
} |
| 63 |
} |
} |
| 64 |
|
|