You are here

function tvi_menu_alter in Taxonomy Views Integrator 6

Same name and namespace in other branches
  1. 7 tvi.module \tvi_menu_alter()

Implements hook_menu_alter().

See also

http://api.drupal.org/api/function/hook_menu_alter/6

File

./tvi.module, line 79
Enables use of views for taxonomy pages.

Code

function tvi_menu_alter(&$items) {
  $items['taxonomy/term/%']['page callback'] = 'tvi_render_view';
  $items['taxonomy/term/%']['page arguments'] = array(
    2,
  );
  $items['taxonomy/term/%']['access callback'] = 'tvi_render_view_access';
  $items['taxonomy/term/%']['access arguments'] = array(
    2,
  );
}