You are here

function taxonomy_edge_menu_alter in Taxonomy Edge 7

Implements hook_menu_alter().

File

./taxonomy_edge.module, line 115
Optimization of taxonomy data model for SQL performance.

Code

function taxonomy_edge_menu_alter(&$items) {

  // Bring /level and /all back into taxonomy pages and feeds.
  if (variable_get('taxonomy_edge_override_term_pages')) {
    $items['taxonomy/term/%taxonomy_term'] = array(
      'title' => 'Taxonomy term',
      'title callback' => 'taxonomy_term_title',
      'title arguments' => array(
        2,
      ),
      'page callback' => 'taxonomy_edge_term_page',
      'page arguments' => array(
        2,
        3,
      ),
      'access arguments' => array(
        'access content',
      ),
      'module' => 'taxonomy_edge',
      'file' => 'taxonomy_edge.pages.inc',
    );
    $items['taxonomy/term/%taxonomy_term/%/feed'] = array(
      'title' => 'Taxonomy term',
      'title callback' => 'taxonomy_term_title',
      'title arguments' => array(
        2,
      ),
      'page callback' => 'taxonomy_edge_term_feed',
      'page arguments' => array(
        2,
        3,
      ),
      'access arguments' => array(
        'access content',
      ),
      'module' => 'taxonomy_edge',
      'file' => 'taxonomy_edge.pages.inc',
    );
  }
}