/[drupal]/contributions/modules/opencalais/arc_rdf/arc_rdf.module
ViewVC logotype

Diff of /contributions/modules/opencalais/arc_rdf/arc_rdf.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2.2.1, Thu Apr 24 17:52:47 2008 UTC revision 1.2.2.2, Tue Jul 1 02:50:36 2008 UTC
# Line 8  Line 8 
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) {
# Line 48  function arc_rdf_requirements($phase) { Line 48  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    

Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.2.2.2

  ViewVC Help
Powered by ViewVC 1.1.2