tid = $term->tid; $breadcrumb = array(); while ($parents = taxonomy_get_parents($current->tid)) { $current = array_shift($parents); $breadcrumb[] = l($current->name, 'taxonomy/term/' . $current->tid); } $breadcrumb[] = l(t('Home'), NULL); $breadcrumb = array_reverse($breadcrumb); drupal_set_breadcrumb($breadcrumb); drupal_add_feed(url('taxonomy/term/' . $term->tid . '/feed'), 'RSS - ' . $term->name); $build['term_heading'] = array( '#prefix' => '
', '#suffix' => '
', 'term' => taxonomy_term_view($term, 'full'), ); $filters = 'tid:' . $term->tid; $solrsort = variable_get('apachesolr_search_taxonomy_sort', 'created desc'); $page = isset($_GET['page']) ? $_GET['page'] : 0; $type = 'apachesolr_search'; $_GET['retain-filters'] = 1; //?? $search_results = apachesolr_search_run('', $filters, $solrsort, 'search/apachesolr_search', $page); if ($search_results) { foreach ($search_results as $entry) { $output[] = $entry; } $variables['results'] = $output; $variables['module'] = $type; $build['content'] = array( '#markup' => theme('search_results', $variables), ); } else{ $build['no_content'] = array( '#prefix' => '

', '#markup' => t('There is currently no content classified with this term.'), '#suffix' => '

', ); } return $build; }