| 1 |
<?php |
<?php |
| 2 |
// $Id: autotagging_yahoo_terms.module,v 1.2 2009/07/06 20:12:56 acstewart Exp $ |
// $Id: autotagging_yahoo_terms.module,v 1.3 2009/07/22 18:24:08 acstewart Exp $ |
| 3 |
/* |
/* |
| 4 |
* @file autotagging_yahoo_terms.module |
* @file autotagging_yahoo_terms.module |
| 5 |
* Yahoo Terms support for autotagging module. |
* Yahoo Terms support for autotagging module. |
| 13 |
} |
} |
| 14 |
|
|
| 15 |
/** implementation of hook_autotagging_api_update */ |
/** implementation of hook_autotagging_api_update */ |
| 16 |
function autotagging_yahoo_terms_autotagging_api_update(&$node = NULL, &$text = NULL) { |
function autotagging_yahoo_terms_autotagging_api_update(&$node, &$text) { |
| 17 |
return autotagging_yahoo_terms_autotagging_api_insert($node, $text); |
return autotagging_yahoo_terms_autotagging_api_insert($node, $text); |
| 18 |
} |
} |
| 19 |
|
|
| 20 |
/** implementation of hook_autotagging_api_insert */ |
/** implementation of hook_autotagging_api_insert */ |
| 21 |
function autotagging_yahoo_terms_autotagging_api_insert(&$node = NULL, &$text = NULL) { |
function autotagging_yahoo_terms_autotagging_api_insert(&$node, &$text) { |
| 22 |
$url = AUTOTAGGING_YAHOO_TERMS_URL; |
$url = AUTOTAGGING_YAHOO_TERMS_URL; |
| 23 |
$appid = variable_get('autotagging_yahoo_terms_appid', ''); |
$appid = variable_get('autotagging_yahoo_terms_appid', ''); |
| 24 |
$url .= '?appid=' . $appid; |
$url .= '?appid=' . $appid; |