--- 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
+ - Provide a textual transcript of audio-only content (for a live audio stream, do this after the fact).
+ (guideline 1.2.1 |
+ technique 1.2.1 G158)
+ - For a pre-recorded or streaming video, link to textual information describing the video content.
+ (technique 1.2.1 G159)
+ - If adding an audio clip more than 3 seconds in length, add a readily-usable feature near the beginning of the page to either pause/stop
+ the audio or control the audio\'s volume independent of the user\'s native sound system.
+ (guidelines 1.4.2 |
+ technique 1.4.2 G170)
');
+ }
+
+ //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
+ ');
+ }
+
+
+
+
+}