diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-07 08:01:52 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-07 08:01:52 +0000 |
commit | 3ce9499ab6b5659c0ceac793a8db633189a640c3 (patch) | |
tree | 260fadb2319ec1896b47204f5e93b4b2dfaf905d /modules/system/system.module | |
parent | 1c20428a4b3f2f7ddfd144531eff537e2abb6fe4 (diff) | |
download | brdo-3ce9499ab6b5659c0ceac793a8db633189a640c3.tar.gz brdo-3ce9499ab6b5659c0ceac793a8db633189a640c3.tar.bz2 |
#464796 by mgifford, mikey_p, and chx: Remove menu link titles on output so they do not interfere with screen readers.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 9 |
1 files changed, 7 insertions, 2 deletions
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']; |