Closed (fixed)
Project:
Jump
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2009 at 16:18 UTC
Updated:
29 Jan 2009 at 18:09 UTC
here's a one-line change that keeps unused terms from showing up in the jump menu:
in jump.module replace the old jump_menu_get_taxo_options function with
function jump_menu_get_taxo_options(&$options, $vid) {
$tree = taxonomy_get_tree($vid);
foreach ($tree as $term) {
if (taxonomy_term_count_nodes($term->tid) !=0) {
$options[taxonomy_term_path($term)] = $term->name;
}
}
}
Comments
Comment #1
sapark commented