Index: advanced_help.js
===================================================================
RCS file: advanced_help.js
diff -N advanced_help.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ advanced_help.js	27 Aug 2008 17:48:46 -0000
@@ -0,0 +1,13 @@
+// $Id
+
+if(Drupal.jsEnabled) {
+  $(document).ready( function() {
+    $('div#advanced-help-inline-index ul').hide();
+    $('div#advanced-help-inline-index h3 a').attr("href", "javascript:void(0);");
+    $('div#advanced-help-inline-index h3').click(
+      function(){
+       $('div#advanced-help-inline-index ul').slideToggle();
+      }
+     );
+  });
+}
\ No newline at end of file
Index: advanced_help.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/advanced_help/advanced_help.module,v
retrieving revision 1.20
diff -u -p -r1.20 advanced_help.module
--- advanced_help.module	30 May 2008 18:55:44 -0000	1.20
+++ advanced_help.module	27 Aug 2008 17:40:17 -0000
@@ -76,6 +76,10 @@ function advanced_help_theme() {
     'template' => 'advanced-help-popup',
   );
 
+  $hooks['advanced_help_inline_index'] = array(
+    'arguments' => array('module' => NULL),
+  );
+
   return $hooks;
 }
 
@@ -441,6 +445,37 @@ function theme_advanced_help_topic($modu
 }
 
 /**
+ * Display a help topic link with available help topics underneath it.
+ *
+ * @param $module
+ *   The module whose links you would like to display.
+ * @param $title
+ *   The title of the heading for this section.
+ * @param $allowed_topics
+ *   An array of topics that you would like to display. Leave empty to show all topics.
+ */
+function theme_advanced_help_inline_index($module, $title = 'Help Topics', $allowed_topics = array()) {
+  //Include the javascript that adds the slide effect.
+  drupal_add_js(drupal_get_path('module', 'advanced_help') .'/advanced_help.js');
+
+  //Build the index output
+  $output = '<div id="advanced-help-inline-index">';
+  $output .= '<h3><a href="'. base_path(). 'admin/advanced_help/'. $module .'">'. t($title) .'</a></h3>';
+  $output .= '<ul>';
+
+  //Loop through all topics for the module check if it's a wanted topic and throw them in a list.
+  $topics = advanced_help_get_topics();
+  foreach ($topics[$module] as $topic => $options) {
+    if (empty($allowed_topics) || in_array($topic, $allowed_topics)) {
+      $output .= '<li>'. theme_advanced_help_topic($module, $topic, 'title') .'</li>';
+    }
+  }
+  $output .='</ul></div>';
+
+  return $output;
+}
+
+/**
  * Load and render a help topic.
  */
 function advanced_help_get_topic_filename($module, $topic) {
