/[drupal]/contributions/modules/autotagging/modules/autotagging_calais/autotagging_calais.module
ViewVC logotype

Diff of /contributions/modules/autotagging/modules/autotagging_calais/autotagging_calais.module

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

revision 1.1, Mon Jul 6 19:06:34 2009 UTC revision 1.2, Wed Jul 22 18:24:08 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: autotagging_calais.module,v 1.1 2009/07/06 19:06:34 acstewart Exp $
3    
4  /*  /*
5   * @file autotagging_calais.module   * @file autotagging_calais.module
# Line 42  function autotagging_calais_autotagging_ Line 42  function autotagging_calais_autotagging_
42    }    }
43    $response = drupal_http_request($url . $alldata, array(), 'POST');    $response = drupal_http_request($url . $alldata, array(), 'POST');
44    $xml = $response->data;    $xml = $response->data;
45      if ($response->code != 200) {
46        watchdog('autotagging_calais', 'Received response code '. $response->code .' from OpenCalais', WATCHDOG_SEVERE);
47        return array();
48      }
49    $doc = DOMDocument::loadXML($xml);    $doc = DOMDocument::loadXML($xml);
50    $xp = new DOMXPath($doc);    $xp = new DOMXPath($doc);
51    $xp->registerNamespace('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');    $xp->registerNamespace('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2