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

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

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

revision 1.3, Tue Jul 7 21:25:07 2009 UTC revision 1.4, Wed Jul 22 18:24:08 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: autotagging_tagthenet.module,v 1.2 2009/07/01 21:15:54 acstewart Exp $  // $Id: autotagging_tagthenet.module,v 1.3 2009/07/07 21:25:07 acstewart Exp $
3    
4  /*  /*
5   * @file autotagging_tagthenet.module   * @file autotagging_tagthenet.module
# Line 23  function autotagging_tagthenet_autotaggi Line 23  function autotagging_tagthenet_autotaggi
23    $url = AUTOTAGGING_TAGTHENET_URL;    $url = AUTOTAGGING_TAGTHENET_URL;
24    $data = 'text='. urlencode($text);    $data = 'text='. urlencode($text);
25    $response = drupal_http_request($url .'?'. $data, array(), 'POST');    $response = drupal_http_request($url .'?'. $data, array(), 'POST');
26      if ($response->code != 200) {
27        watchdog('autotagging_tagthenet', 'Received response code '. $response->code .' from Tagthe.net', WATCHDOG_SEVERE);
28        return array();
29      }
30    $xml = $response->data;    $xml = $response->data;
31    $dom = DOMDocument::loadXML($xml);    $dom = DOMDocument::loadXML($xml);
32    $xp = new DOMXPath($dom);    $xp = new DOMXPath($dom);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2