/[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.2, Wed Jul 22 18:24:08 2009 UTC revision 1.3, Fri Jul 24 17:30:25 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: autotagging_calais.module,v 1.1 2009/07/06 19:06:34 acstewart Exp $  // $Id: autotagging_calais.module,v 1.2 2009/07/22 18:24:08 acstewart Exp $
3    
4  /*  /*
5   * @file autotagging_calais.module   * @file autotagging_calais.module
# Line 14  function autotagging_calais_autotagging_ Line 14  function autotagging_calais_autotagging_
14  }  }
15    
16  /** implementation of hook_autotagging_api_update */  /** implementation of hook_autotagging_api_update */
17  function autotagging_calais_autotagging_api_update(&$node = NULL, &$text = NULL) {  function autotagging_calais_autotagging_api_update(&$node, &$text) {
18    return autotagging_calais_autotagging_api_insert($node, $text);    return autotagging_calais_autotagging_api_insert($node, $text);
19  }  }
20    
21  /** implementation of hook-autotagging_api_insert */  /** implementation of hook-autotagging_api_insert */
22  function autotagging_calais_autotagging_api_insert(&$node = NULL, &$text = NULL) {  function autotagging_calais_autotagging_api_insert(&$node, &$text) {
23    $url = AUTOTAGGING_CALAIS_URL;    $url = AUTOTAGGING_CALAIS_URL;
24    $data = array();    $data = array();
25    $xmlinput = '<c:params xmlns:c="http://s.opencalais.com/1/pred/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><c:processingDirectives c:contentType="text/html" c:enableMetadataType="SocialTags" c:outputFormat="xml/rdf"/></c:params>';    $xmlinput = '<c:params xmlns:c="http://s.opencalais.com/1/pred/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><c:processingDirectives c:contentType="text/html" c:enableMetadataType="SocialTags" c:outputFormat="xml/rdf"/></c:params>';

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

  ViewVC Help
Powered by ViewVC 1.1.2