| 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 |
| 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>'; |