/[drupal]/contributions/modules/taxonomy_hide/taxonomy_hide.inc
ViewVC logotype

Diff of /contributions/modules/taxonomy_hide/taxonomy_hide.inc

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

revision 1.1.2.2, Mon Oct 27 14:32:21 2008 UTC revision 1.1.2.3, Mon Oct 27 15:07:50 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: taxonomy_hide.inc,v 1.1.2.1 2008/05/11 04:38:51 brmassa Exp $  // $Id: taxonomy_hide.inc,v 1.1.2.2 2008/10/27 14:32:21 brmassa Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 44  function _taxonomy_hide_sort($a, $b) { Line 44  function _taxonomy_hide_sort($a, $b) {
44    // Cache the extra vocabulary information (we need the vocabulary weight)    // Cache the extra vocabulary information (we need the vocabulary weight)
45    static $vocs = array();    static $vocs = array();
46    if (!array_key_exists($a->vid, $vocs)) {    if (!array_key_exists($a->vid, $vocs)) {
47      $vocs[$a->vid] = taxonomy_get_vocabulary($a->vid);      $vocs[$a->vid] = taxonomy_vocabulary_load($a->vid);
48    }    }
49    if (!array_key_exists($b->vid, $vocs)) {    if (!array_key_exists($b->vid, $vocs)) {
50      $vocs[$b->vid] = taxonomy_get_vocabulary($b->vid);      $vocs[$b->vid] = taxonomy_vocabulary_load($b->vid);
51    }    }
52    
53    // Compare first by vocabulary weight, next by vocabulary id, next by term    // Compare first by vocabulary weight, next by vocabulary id, next by term

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2