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

Diff of /contributions/modules/taxonomy_manager/taxonomy_manager.module

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

revision 1.5.2.17.2.14.2.13, Tue Aug 11 09:37:59 2009 UTC revision 1.5.2.17.2.14.2.14, Thu Aug 20 08:09:14 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3  // $Id: taxonomy_manager.module,v 1.5.2.17.2.14.2.12 2009/08/10 13:47:46 mh86 Exp $  // $Id: taxonomy_manager.module,v 1.5.2.17.2.14.2.13 2009/08/11 09:37:59 mh86 Exp $
4    
5  /**  /**
6   *   *
# Line 560  function _taxonomy_manager_tree_get_firs Line 560  function _taxonomy_manager_tree_get_firs
560   * helper function to check whether a given term is a root term   * helper function to check whether a given term is a root term
561   */   */
562  function taxonomy_manager_term_is_root($tid) {  function taxonomy_manager_term_is_root($tid) {
563    if (db_affected_rows(db_query("SELECT tid FROM term_hierarchy WHERE tid = %d AND parent = 0", $tid)) == 1) {    if (db_affected_rows(db_query("SELECT tid FROM {term_hierarchy} WHERE tid = %d AND parent = 0", $tid)) == 1) {
564      return TRUE;      return TRUE;
565    }    }
566    return FALSE;    return FALSE;

Legend:
Removed from v.1.5.2.17.2.14.2.13  
changed lines
  Added in v.1.5.2.17.2.14.2.14

  ViewVC Help
Powered by ViewVC 1.1.2