I was wondering if anyone could help me out with this issue. When a screen reader like JAWS reads through my Drupal site, it complains about not being able to read the "«" and "»" to view previous months and next months. The screen reader will give me results like:

<< as a Link Name

Currently I'm trying to resolve this issue by adding a "title" attribute to the tag which creates a link for the « and ». I'm not even sure if this will really fix the issue, but I am thinking the screen reader will be able to read the link and not complain. I have combed through the event.module file and tried to find how these links are created and how to add attributes to the tags. Basically I can't figure it out because it passes the calender header and table to the theme() function and somehow it creates these links. I was wondering if anyone could help point me in the right direction.

Thanks in advance!

Comments

wdmartin’s picture

You've combed the event.module file? There's your problem - you need to be looking at the event.theme file. Specifically, the relevant functions are:

  • theme_event_nav_prev()
  • theme_event_nav_next()

Copy these two functions into your theme's template.php, then replace "theme" with the name of your theme. Alternatively, you can use "phptemplate" instead of your theme's name. Drupal will prefer the theme-specific or engine-specific functions over the generic ones.

Once you've got the functions copied and renamed, you can add the attributes. I direct your attention to the docs for the l() function for more details on how to add the attributes.