From 3ce9499ab6b5659c0ceac793a8db633189a640c3 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 7 Jan 2010 08:01:52 +0000 Subject: #464796 by mgifford, mikey_p, and chx: Remove menu link titles on output so they do not interfere with screen readers. --- modules/system/system.module | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index e8a6c4fa4..e0da1720b 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1939,11 +1939,16 @@ function system_admin_menu_block($item) { if (!$link['access']) { continue; } - // The link 'description' either derived from the hook_menu 'description' or - // entered by the user via menu module is saved as the title attribute. + + // The link 'description' — either derived from the hook_menu 'description' or + // entered by the user via menu module — is saved as the title attribute. + // The title attribute is then unset to reduce redundancy in admin pages + // for screen readers. if (!empty($link['localized_options']['attributes']['title'])) { $link['description'] = $link['localized_options']['attributes']['title']; + unset($link['localized_options']['attributes']['title']); } + // Prepare for sorting as in function _menu_tree_check_access(). // The weight is offset so it is always positive, with a uniform 5-digits. $key = (50000 + $link['weight']) . ' ' . drupal_strtolower($link['title']) . ' ' . $link['mlid']; -- cgit v1.2.3