--- 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('<h3>Accessibility Tips for Web Forms</h3>
+    <ul><li>Use the "fieldset" and "legend" attributes to add a description of groupings of form controls 
+    (<a href="http://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html" title="guidelines 1.3.1">guidelines 1.3.1</a> | 
+    <a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H71" title="technique for 1.3.1">technique 1.3.1 H71</a>)</li>
+    <li>In a "select" dropdown, use "optgroup" to group the "option" elements 
+    (<a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H85" title="technique for 1.3.1">technique 1.3.1 H85</a>)</li></ul>');
+  }
+	 
+  //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('<h3>Accessibility Tips for Audio and Video</h3>
+    <ul><li>Provide a textual transcript of audio-only content (for a live audio stream, do this after the fact). 
+    (<a href="http://www.w3.org/TR/UNDERSTANDING-WCAG20/media-equiv-av-only-alt.html" title="guidelines for 1.2.1">guideline 1.2.1</a> | 
+    <a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/G158" title="technique for 1.2.1">technique 1.2.1 G158</a>)</li>
+    <li>For a pre-recorded or streaming video, link to textual information describing the video content. 
+    (<a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/G159" title="technique for 1.2.1">technique 1.2.1 G159</a>)</li> 
+    <li>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. 
+    (<a href="http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-dis-audio.html" title="guidelines for 1.4.2">guidelines 1.4.2</a> | 
+    <a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/G170" title="technique for 1.4.2">technique 1.4.2 G170</a>)</li></ul>');
+	  }
+	  
+  //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('<h3>Accessibility Tips for Content Writing</h3>
+    <ul><li>Break text up into small sections, ideally no more than 3-4 sentences long. 
+    (<a href="http://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning.html" title="Guideline 3.1">guidelines 3.1</a>)</li>
+    <li>When using a table to present data: 
+    (<a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H51" title="Techniques for 1.3.1">techniques 1.3.1</a>)</li>
+    <ul><li>Use the "summary" attribute to describe the contents of a table 
+    (<a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H73" title="technique for 1.3.1">technique 1.3.1 H73</a>)</li>
+    <li>Use the "scope" attribute to associate header cells with data cells in a table of data 
+    (<a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H63" title="technique for 1.3.1">technique 1.3.1 H63</a>)</li></ul>
+    <li>Use header tags (h1, h2, h3, h4, h5, h6) to designate headings 
+    (<a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H42" title="technique for 1.3.1">technique 1.3.1 H42</a>)</li>
+    <li>Ensure that color is not the only visual cue to prompt a user response or convey a visual relationship 
+    (<a href="http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-without-color.html" title="guidelines 1.4.1">guidelines 1.4.1 | 
+    <a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/G182" title="techniques for 1.4.1">technique 1.4.1 G182</a>)</li>
+    <li>Use descriptive headings and labels to describe information and sections of content 
+    (<a href="http://www.w3.org/WAI/WCAG20/quickref/#qr-navigation-mechanisms-descriptive" title="guidelines for 2.4.6">guidelines 2.4.6</a> | 
+    <a href="http://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html" title="techniques for 2.4.6">techniques 2.4.6</a>)</li></ul>');
+	  }
+	  
+  //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('<h3>Accessibility Tips for Navigation</h3>
+    <ul><li>Add a link at the top of a block of repeated content to go to the end of that block 
+    (<a href="http://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-skip.html" title="guideline 2.4.1">guidelines 2.4.1</a> | 
+    <a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/G123" title="technique for 2.4.1 G123">technique 2.4.1 G123</a>)</li>
+    <li>Add a link at the top of a navigation scheme to skip directly to the main content of the page 
+    (<a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/G1" title="">technique 2.4.1 G1</a>)</li>
+    <li>Add a link at the top of a navigation scheme to go directly to each important area of content on a page 
+    (<a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/G124" title="technique 2.4.1 G124">technique 2.4.1 G124</a>)</li>
+    <li>Provide meaningful heading elements at the beginning of each block of content 
+    (<a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H69" title="technique 2.4.1 H69">technique 2.4.1 H69</a>)</li>
+    <li>Use structural elements (ul, li, map, etc.) to group links 
+    (<a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H50" title="technique 2.4.1 H50">technique 2.4.1 H50</a>)</li>
+    <li>Make separate components that have the same functionality identifiable as consistent and similar 
+    (<a href="http://www.w3.org/WAI/WCAG20/quickref/#qr-consistent-behavior-consistent-functionality" title="guidelines 3.2.4">guidelines 3.2.4</a> | 
+    <a href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/G197" title="technique 3.2.4 G197">technique 3.2.4 G197</a>)</li></ul>');
+	  }
+	  
+	
+ 
+
+}
 
 
