Commit 95449669 authored by Cody Craven's avatar Cody Craven
Browse files

Issue #1304536 by codycraven: Make compatible with CTools' page manager.

parent 7fcf25a3
Taxonomy Display 7.x-1.x, YYYY-MM-DD Taxonomy Display 7.x-1.x, YYYY-MM-DD
------------------------------------ ------------------------------------
Issue #1304536 by codycraven: Make compatible with CTools' page manager.
Issue #1231090 by Jose Reyero, codycraven: Send term page title through Issue #1231090 by Jose Reyero, codycraven: Send term page title through
internationalization taxonomy, if it exists. internationalization taxonomy, if it exists.
Issue #1231090 by codycraven: Added alter hook in core breadcrumb handler to Issue #1231090 by codycraven: Added alter hook in core breadcrumb handler to
......
...@@ -133,6 +133,11 @@ function taxonomy_display_form_fieldset(&$form, $fetch = 'term') { ...@@ -133,6 +133,11 @@ function taxonomy_display_form_fieldset(&$form, $fetch = 'term') {
* Implements of hook_menu_alter(). * Implements of hook_menu_alter().
*/ */
function taxonomy_display_menu_alter(&$items) { function taxonomy_display_menu_alter(&$items) {
// Do not hijack term page if CTools' Page Manager is hijacking it.
if (!variable_get('page_manager_term_view_disabled', TRUE)) {
return;
}
$items['taxonomy/term/%taxonomy_term']['page callback'] = 'taxonomy_display_taxonomy_term_page'; $items['taxonomy/term/%taxonomy_term']['page callback'] = 'taxonomy_display_taxonomy_term_page';
$items['taxonomy/term/%taxonomy_term']['title callback'] = 'taxonomy_display_taxonomy_term_title'; $items['taxonomy/term/%taxonomy_term']['title callback'] = 'taxonomy_display_taxonomy_term_title';
$items['taxonomy/term/%taxonomy_term']['file'] = 'taxonomy_display.module'; $items['taxonomy/term/%taxonomy_term']['file'] = 'taxonomy_display.module';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment