| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_browser.module,v 1.19.2.26 2008/06/11 18:20:50 nancyw Exp $ |
// $Id: taxonomy_browser.module,v 1.19.2.27 2008/06/16 19:09:14 nancyw Exp $ |
| 3 |
// Original by Moshe Weitzman (weitzmna@tejasa.com) |
// Original by Moshe Weitzman (weitzmna@tejasa.com) |
| 4 |
|
|
| 5 |
/** |
/** |
| 358 |
// $count = db_result(db_query('SELECT COUNT(nid) FROM {term_node} WHERE tid=%d', $term->tid)); |
// $count = db_result(db_query('SELECT COUNT(nid) FROM {term_node} WHERE tid=%d', $term->tid)); |
| 359 |
$count = taxonomy_term_count_nodes($term->tid); |
$count = taxonomy_term_count_nodes($term->tid); |
| 360 |
if ($count > 0 || $show_unused) { |
if ($count > 0 || $show_unused) { |
| 361 |
$opt_string = htmlspecialchars_decode(check_plain($term->name), ENT_QUOTES) .' ('. $count .')'; |
$opt_string = decode_entities(check_plain($term->name)) .' ('. $count .')'; |
| 362 |
} |
} |
| 363 |
} |
} |
| 364 |
else { |
else { |
| 365 |
$opt_string = htmlspecialchars_decode(check_plain($term->name), ENT_QUOTES); |
$opt_string = decode_entities(check_plain($term->name)); |
| 366 |
} |
} |
| 367 |
if ($opt_string) { |
if ($opt_string) { |
| 368 |
$term_opts[$term->tid] = str_repeat('-', $term->depth) . $opt_string; |
$term_opts[$term->tid] = str_repeat('-', $term->depth) . $opt_string; |