--- morehelp.module	Thu Apr 23 13:44:31 2009
+++ morehelp.module	Thu Apr 23 13:44:20 2009
@@ -50,18 +50,16 @@
 }
 
 function morehelp_help($section) {
-	switch ($section) {
-		default:
-			$result = db_query("SELECT * FROM {help} WHERE '%s' LIKE section ESCAPE '*'", $section);
-			$output = '';
-			while ($row = db_fetch_object($result)) {
-				$output .= check_markup($row->body, $row->format, false);
-			}
-			
-			return $output;
-	}
+  $sectionalias = drupal_get_path_alias($section);
+  $result = db_query("SELECT * FROM {help} WHERE ('%s' LIKE section) OR ('%s' LIKE section)", $section, $sectionalias);
+  $output = '';
+  while ($row = db_fetch_object($result)) {
+    $output .= check_markup($row->body, $row->format, false);
+  }
+  return $output;
 }
 
+
 function morehelp_admin() {
 	$header = array(
 		array('data' => t('Section'), 'field' => 'section', 'sort' => 'asc'),
@@ -129,7 +127,7 @@
 		'#type' => 'textfield',
 		'#title' => t('Section'),
 		'#default_value' => $edit['section'],
-		'#description' => t('Enter the uri of the section to display the help message.'),
+		'#description' => t('Enter the path of the section to display the help message.  Use % for wildcard matching.'),
 		'#required' => true
 	);
 	$form['body'] = array(
