Index: modules/quotes/quotes.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/quotes/quotes.module,v
retrieving revision 1.10
diff -u -F^function -r1.10 quotes.module
--- modules/quotes/quotes.module	10 Mar 2004 15:00:59 -0000	1.10
+++ modules/quotes/quotes.module	19 Jun 2004 20:37:10 -0000
@@ -71,22 +71,26 @@ function quotes_perm() {
 } // function quotes_perm
 
 /**
- * Drupal hook that returns an array of links valid for the specified
- * type.
- *
- * @param string $in_type The type of links requested.
- * @param integer $in_node The node for which links are requested.
- *
- * @return array An array of links for the specified type and node.
+ * Implementation of hook_menu().
  */
-function quotes_link($in_type, $in_node = 0) {
-  if (($in_type == "system") && user_access("administer quotes") && _quotes_is_installed()) {
-	menu("quotes", t("quotes"), "_quotes_page", 0, MENU_HIDE);
-    menu("admin/quotes", t("quotes"), "_quotes_admin");
-    menu("admin/quotes/quotes", t("overview"), "_quotes_admin", -1);
-    menu("admin/quotes/add", t("add"), "_quotes_admin");
+function article_menu() {
+  $items = array();
+
+  if (_quotes_is_installed()) {
+    $items[] = array('path' => 'quotes', 'title' => t('quotes'),
+      'access' => user_access('administer quotes'),
+      'callback' => '_quotes_page',
+      'type' => MENU_CALLBACK);
+    $items[] = array('path' => 'admin/quotes', 'title' => t('quotes'),
+      'access' => user_access('administer quotes'),
+      'callback' => '_quotes_admin');
+    $items[] = array('path' => 'admin/quotes/quotes', 'title' => t('overview'),
+      'weight' => 1);
+    $items[] = array('path' => 'admin/quotes/add', 'title' => t('add'));
   }
-} // function quotes_link
+
+  return $items;
+}
 
 /**
  * Drupal hook that displays the current installation status of this
