You are hereBlogs / Matt's blog / Fixing Drupal's Taxonomy Menu Modules's Tooltip / Title Clutter

Fixing Drupal's Taxonomy Menu Modules's Tooltip / Title Clutter


By Matt - Posted on 03 May 2010

Drupal's Taxonomy Menu is very useful for organizing your site, but its developers have added a real nuisance in the form of the title attribute to the "a" tags it generates when paired with a suckerfish menu in a theme or "nice menus" module.

Here's a patch to dismiss that problem, run it from the "modules" folder in your Drupal installation.

 

diff -Naur taxonomy_menu/taxonomy_menu.module taxonomy_menu.old/taxonomy_menu.module
--- taxonomy_menu.old/taxonomy_menu.module    2010-05-03 12:00:06.000000000 -0500
+++ taxonomy_menu/taxonomy_menu.module    2010-01-21 19:47:02.000000000 -0600
@@ -517,8 +517,8 @@
     'link_title' => t($item['name']),
     'menu_name' => $item['menu_name'],
     'plid' => $plid,
-    'options' => array('attributes' => array('title' => t(trim($item['description'])
-      ? $item['description'] : $item['name']))),
+//    'options' => array('attributes' => array('title' => t(trim($item['description'])
+//      ? $item['description'] : $item['name']))),
     'weight' => $weight,
     'module' => 'taxonomy_menu',
     'expanded' => variable_get('taxonomy_menu_expanded_'. $item['vid'], TRUE),

 

Create Live Bookmark

Syndicate content

Recent comments

Latest images