Index: autoload.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/autoload/autoload.module,v
retrieving revision 1.1.2.11.2.1
diff -u -p -r1.1.2.11.2.1 autoload.module
--- autoload.module	7 Sep 2010 22:29:04 -0000	1.1.2.11.2.1
+++ autoload.module	7 Sep 2010 22:30:47 -0000
@@ -12,6 +12,39 @@ define('AUTOLOAD_REGISTRY_RESET_LOOKUP_C
 define('AUTOLOAD_REGISTRY_WRITE_LOOKUP_CACHE', 2);
 
 /**
+ * Implements hook_menu().
+ */
+function autoload_menu() {
+  $items['autoload/flush-cache'] = array(
+    'page callback' => 'autoload_adminmenu_flush_cache',
+    'access arguments' => array('administer site configuration'),
+    'type' => MENU_CALLBACK,
+  );
+  return $items;
+}
+
+/**
+ * Implements hook_admin_menu_output_alter().
+ */
+function autoload_admin_menu_output_alter(&$content) {
+  $content['icon']['icon']['flush-cache']['automodal'] = array(
+    '#title' => t('Class registry'),
+    '#href' => 'autoload/flush-cache',
+    '#options' => array(
+      'query' => drupal_get_destination(),
+    ),
+  );
+}
+
+/**
+ * Administration menu callback; flush the class registry cache.
+ */
+function autoload_adminmenu_flush_cache() {
+  autoload_registry_rebuild();
+  drupal_goto();
+}
+
+/**
  * Implements hook_boot().
  */
 function autoload_boot() {
