Index: weblink/weblink.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/weblink/weblink.module,v
retrieving revision 1.63
diff -u -F^function -r1.63 weblink.module
--- weblink/weblink.module	19 Jun 2004 10:53:37 -0000	1.63
+++ weblink/weblink.module	21 Jun 2004 00:01:32 -0000
@@ -37,18 +37,32 @@ function weblink_help($section = "admin/
   }
 }
 
+/**
+ * Implementation of hook_menu().
+ */
+function weblink_menu() {
+  $items = array();
+
+  $items[] = array('path' => 'node/add/weblink', 'title' => t('weblink'),
+    'access' => user_access('create weblinks'));
+  $items[] = array('path' => 'weblink/blogmark/js', 'title' => t('blogmark'),
+    'access' => TRUE,
+    'callback' => 'weblink_blogmark_js',
+    'type' => MENU_CALLBACK);
+  $items[] = array('path' => 'weblink/blogmark', 'title' => t('blogmark'),
+    'access' => TRUE,
+    'callback' => 'weblink_blogmark',
+    'type' => MENU_CALLBACK);
+  $items[] = array('path' => 'weblink', 'title' => t('weblink'),
+    'access' => TRUE,
+    'callback' => 'weblink_page',
+    'type' => MENU_CALLBACK);
+
+  return $items;
+}
+
 function weblink_link($type, $node = 0) {
   $links = array();
-  
-  // System menu items
-  if ($type == "system") {
-    if (user_access("create weblinks")) {
-      menu("node/add/weblink", t("weblink"), "node_page");
-    }
-    menu("weblink/blogmark/js", t("blogmark"), "weblink_blogmark_js", 0, MENU_HIDE);
-    menu("weblink/blogmark", t("blogmark"), "weblink_blogmark", 0, MENU_HIDE);
-    menu("weblink", t("weblink"), "weblink_page", 0, MENU_HIDE);
-  }
 
   // Node links for a weblink
   if ($type == "node" && $node->type == "weblink") {
