Index: pathauto.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.module,v
retrieving revision 1.22.2.8
diff -u -r1.22.2.8 pathauto.module
--- pathauto.module	11 Oct 2006 22:35:18 -0000	1.22.2.8
+++ pathauto.module	19 Oct 2006 14:48:54 -0000
@@ -1,6 +1,15 @@
 <?php
 // $Id: pathauto.module,v 1.22.2.8 2006/10/11 22:35:18 greggles Exp $
 
+  // Look for any extensions installed in the pathauto directory
+  // we include this here instead of hook_menu for a reason - see http://drupal.org/node/60526
+  $path = drupal_get_path('module', 'pathauto');
+  $files = file_scan_directory($path, '^pathauto_.*\.inc$');
+  foreach ($files as $filename => $file) {
+    include_once($filename);
+  }
+
+
 function pathauto_help($section = 'admin/modules#description') {
   switch ($section) {
     case 'admin/modules#description':
@@ -456,14 +465,7 @@
   return $count;
 }
 
-function pathauto_menu($may_cache) {
-  // Look for any extensions installed in the pathauto directory
-  $path = drupal_get_path('module', 'pathauto');
-  $files = file_scan_directory($path, '^pathauto_.*\.inc$');
-  foreach ($files as $filename => $file) {
-    include_once($filename);
-  }
-  
+function pathauto_menu($may_cache) {  
   $items = array();
   $modulelist = variable_get('pathauto_modulelist', array());
   if (is_array($modulelist)) {
