| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_vtn.pages.inc,v 1.1.2.24 2008/12/22 00:26:10 alexiswilke Exp $ |
// $Id: taxonomy_vtn.pages.inc,v 1.1.2.25 2008/12/22 00:41:27 alexiswilke Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 285 |
break; |
break; |
| 286 |
|
|
| 287 |
case 'taxonomy_term': |
case 'taxonomy_term': |
| 288 |
$term_goto_path = taxonomy_term_path($term->tid); //'taxonomy/term/'. $term->tid; |
$term_goto_path = taxonomy_term_path($term); //'taxonomy/term/'. $term->tid; |
| 289 |
//$tcount = db_result(db_query("SELECT COUNT(nid) FROM {term_node} WHERE tid = %d", $term->tid)); |
//$tcount = db_result(db_query("SELECT COUNT(nid) FROM {term_node} WHERE tid = %d", $term->tid)); |
| 290 |
$tcount = _taxonomy_vtn_count_nodes(array($term->tid), 0); |
$tcount = _taxonomy_vtn_count_nodes(array($term->tid), 0); |
| 291 |
break; |
break; |
| 292 |
|
|
| 293 |
case 'taxonomy_term_all': |
case 'taxonomy_term_all': |
| 294 |
$term_goto_path = taxonomy_term_path($term->tid) .'/all'; //'taxonomy/term/'. $term->tid .'/all'; |
$term_goto_path = taxonomy_term_path($term) .'/all'; //'taxonomy/term/'. $term->tid .'/all'; |
| 295 |
//$tcount = taxonomy_term_count_nodes($term->tid); |
//$tcount = taxonomy_term_count_nodes($term->tid); |
| 296 |
$tcount = _taxonomy_vtn_count_nodes(array($term->tid), 'all'); |
$tcount = _taxonomy_vtn_count_nodes(array($term->tid), 'all'); |
| 297 |
break; |
break; |
| 336 |
break; |
break; |
| 337 |
|
|
| 338 |
case 'taxonomy_term': |
case 'taxonomy_term': |
| 339 |
$rel_goto_path = taxonomy_term_path($rel->tid); //'taxonomy/term/'. $rel->tid; |
$rel_goto_path = taxonomy_term_path($rel); //'taxonomy/term/'. $rel->tid; |
| 340 |
break; |
break; |
| 341 |
|
|
| 342 |
case 'taxonomy_term_all': |
case 'taxonomy_term_all': |
| 343 |
$rel_goto_path = taxonomy_term_path($rel->tid) .'/all'; //'taxonomy/term/'. $rel->tid .'/all'; |
$rel_goto_path = taxonomy_term_path($rel) .'/all'; //'taxonomy/term/'. $rel->tid .'/all'; |
| 344 |
break; |
break; |
| 345 |
|
|
| 346 |
} |
} |