/[drupal]/contributions/modules/taxonomy_browser/taxonomy_browser.module
ViewVC logotype

Diff of /contributions/modules/taxonomy_browser/taxonomy_browser.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.19.2.27, Mon Jun 16 19:09:14 2008 UTC revision 1.19.2.28, Fri Jun 20 04:08:03 2008 UTC
# Line 1  Line 1 
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  /**  /**
# Line 358  function taxonomy_browser_form() { Line 358  function taxonomy_browser_form() {
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;

Legend:
Removed from v.1.19.2.27  
changed lines
  Added in v.1.19.2.28

  ViewVC Help
Powered by ViewVC 1.1.2