| 1 |
<?php |
<?php |
| 2 |
// $Id: autotagging_yahoo_terms.module,v 1.4 2009/07/24 17:30:25 acstewart Exp $ |
// $Id: autotagging_yahoo_terms.module,v 1.5 2009/07/27 17:52:01 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. |
| 40 |
$results = $xp->evaluate('//y:ResultSet/y:Result'); |
$results = $xp->evaluate('//y:ResultSet/y:Result'); |
| 41 |
$vid = variable_get('autotagging_yahoo_terms_vocabulary', ''); |
$vid = variable_get('autotagging_yahoo_terms_vocabulary', ''); |
| 42 |
$global_vid = variable_get('autotagging_global_vocabulary', ''); |
$global_vid = variable_get('autotagging_global_vocabulary', ''); |
| 43 |
|
$terms = array(); |
| 44 |
for ($i = 0; $i < $results->length; $i++) { |
for ($i = 0; $i < $results->length; $i++) { |
| 45 |
$result = $results->item($i); |
$result = $results->item($i); |
| 46 |
if ($vid == '' || $vid == '<none>') { |
if ($vid == '' || $vid == '<none>') { |