| 1 |
<?php |
<?php |
| 2 |
// $Id: autotagging_tagthenet.module,v 1.3 2009/07/07 21:25:07 acstewart Exp $ |
// $Id: autotagging_tagthenet.module,v 1.4 2009/07/22 18:24:08 acstewart Exp $ |
| 3 |
|
|
| 4 |
/* |
/* |
| 5 |
* @file autotagging_tagthenet.module |
* @file autotagging_tagthenet.module |
| 14 |
} |
} |
| 15 |
|
|
| 16 |
/** implementation of hook_autotagging_api_update */ |
/** implementation of hook_autotagging_api_update */ |
| 17 |
function autotagging_tagthenet_autotagging_api_update(&$node = NULL, &$text = NULL) { |
function autotagging_tagthenet_autotagging_api_update(&$node, &$text) { |
| 18 |
return autotagging_tagthenet_autotagging_api_insert($node, $text); |
return autotagging_tagthenet_autotagging_api_insert($node, $text); |
| 19 |
} |
} |
| 20 |
|
|
| 21 |
/** implementation of hook-autotagging_api_insert */ |
/** implementation of hook-autotagging_api_insert */ |
| 22 |
function autotagging_tagthenet_autotagging_api_insert(&$node = NULL, &$text = NULL) { |
function autotagging_tagthenet_autotagging_api_insert(&$node, &$text) { |
| 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'); |