function i18ntaxonomy_menu_alter in Internationalization 6
Implementation of hook_menu_alter().
Take over the taxonomy pages
File
- i18ntaxonomy/
i18ntaxonomy.module, line 102 - i18n taxonomy module
Code
function i18ntaxonomy_menu_alter(&$items) {
// If ctool's page manager is active for the path skip this modules override.
if (variable_get('page_manager_term_view_disabled', TRUE)) {
// Taxonomy term page. Localize terms.
$items['taxonomy/term/%']['module'] = 'i18ntaxonomy';
$items['taxonomy/term/%']['page callback'] = 'i18ntaxonomy_term_page';
$items['taxonomy/term/%']['file'] = 'i18ntaxonomy.pages.inc';
}
// Localize autocomplete
$items['taxonomy/autocomplete']['module'] = 'i18ntaxonomy';
$items['taxonomy/autocomplete']['page callback'] = 'i18ntaxonomy_autocomplete';
$items['taxonomy/autocomplete']['file'] = 'i18ntaxonomy.pages.inc';
}