function taxonomy_menu_page() { if (arg(2)) { $arguments = explode('/', $_GET['q']); $main_tid = check_query(array_pop($arguments)); drupal_set_html_head(''); $result = taxonomy_select_nodes(array($main_tid), 'or', variable_get('taxonomy_menu_display_descendants', 1) ? 'all' : 0); print theme('page', taxonomy_render_nodes($result)); } else { $arguments = explode('/', $_GET['q']); $vid = $arguments[count($arguments)-1]; $tree = taxonomy_get_tree($vid); if ($tree) { $output = '

' . t('Click on a search term to see nodes with ... ') . '

'; $output .= ''; } } else { $output = t('There are no terms for the selected search.'); } print theme('page', $output); } }