--- accessible.module 2009-05-06 11:50:43.000000000 -0400 +++ subdirectory/accessible.module 2009-05-06 11:50:25.000000000 -0400 @@ -102,5 +102,83 @@ } +/** + * Implements hook_help(). + * addes references to WCAG 2.0 guidelines and techniques for + * content, navigation, web forms, and time media content + */ +function accessible_help($path, $arg){ + + //These tips appear when creating a webform. They also appear when adding or adjusting form components. + //These tips do not appear when the user is editing the non-component content of a webform. + if((($arg[2] == 'webform') || ($arg[3] == 'components')) && ($arg[1] != 'content')){ + return t('

Accessibility Tips for Web Forms

+ '); + } + + //These tips cover some pointers for time-based media guidelines. + //They appear on any page related to the SWFTools module. + if($arg[2] == 'swftools'){ + return t('

Accessibility Tips for Audio and Video

+ '); + } + + //These tips appear when the user is adding or editing content, including the non-component content of a webform. + if($arg[0] == 'node' &&((($arg[2] != '') && ($arg[1] == 'add')) || ($arg[2] == 'edit'))){ + return t('

Accessibility Tips for Content Writing

+ '); + } + + //These tips appear when the user is adding or editing a block or menu. + //They do not appear on menu settings or the main block or menu pages within the admin interface. + if((($arg[2] == 'block') && ($arg[3] != '')) || (((($arg[2] == 'menu') && ($arg[3] != '')) || ($arg[2] == 'menu-customize')) && ($arg[3] != 'settings'))){ + return t('

Accessibility Tips for Navigation

+ '); + } + + + + +}