? fix_phptemplate_links_name_collision.patch Index: menutrails.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/menutrails/menutrails.module,v retrieving revision 1.22 diff -u -p -r1.22 menutrails.module --- menutrails.module 17 Aug 2009 16:37:50 -0000 1.22 +++ menutrails.module 7 Nov 2009 02:48:33 -0000 @@ -411,6 +411,17 @@ function _menutrails_recurse($tree, $hre } /** + * Implementation of hook_theme_registry_alter(). + */ +function menutrails_theme_registry_alter(&$theme_registry) { + // If the theme system didn't detect another theme override function, + // alter theme_links into menutrails_links. + if ($theme_registry['links']['function'] == 'theme_links') { + $theme_registry['links']['function'] = 'menutrails_links'; + } +} + +/** * Return a themed set of links. * * The important difference is that we use the in_active_trail bit here to set @@ -425,7 +436,7 @@ function _menutrails_recurse($tree, $hre * @return * A string containing an unordered list of links. */ -function phptemplate_links($links, $attributes = array('class' => 'links')) { +function menutrails_links($links, $attributes = array('class' => 'links')) { global $language; $output = '';