| 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 |
| 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 |