Index: upload/upload.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/upload/upload.module,v
retrieving revision 1.1
diff -u -F^function -r1.1 upload.module
--- upload/upload.module	25 May 2004 15:05:06 -0000	1.1
+++ upload/upload.module	21 Jun 2004 00:01:04 -0000
@@ -37,13 +37,21 @@ function upload_settings() {
   return $output;
 }
 
-function upload_link($type, $node = 0, $main) {
-  if ($type  == 'system') {
-    if (user_access('upload files (simple)'))
-      menu('upload', t('quick upload'), 'upload_page', 0, MENU_HIDE);
-    if (user_access('maintain files (simple)'))
-      menu('admin/upload', t('manage files'), 'upload_admin', 0);
-  }
+/**
+ * Implementation of hook_menu().
+ */
+function upload_menu() {
+  $items = array();
+
+  $items[] = array('path' => 'upload', 'title' => t('quick upload'),
+    'access' => user_access('upload files (simple)'),
+    'callback' => 'upload_page',
+    'type' => MENU_CALLBACK);
+  $items[] = array('path' => 'admin/upload', 'title' => t('manage files'),
+    'access' => user_access('maintain files (simple)'),
+    'callback' => 'upload_admin');
+
+  return $items;
 }
 
 function upload_page() {
