Index: contact_forms.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/contact_forms/contact_forms.module,v
retrieving revision 1.11
diff -u -p -r1.11 contact_forms.module
--- contact_forms.module	25 Sep 2008 04:20:15 -0000	1.11
+++ contact_forms.module	30 Nov 2008 07:59:24 -0000
@@ -13,24 +13,20 @@
  * Implementation of hook_menu()
  */
 function contact_forms_menu() {
-      // instead of hijacking the path 'contact' we create a path for each contact category
-    $result = db_query('SELECT category FROM {contact}');
-    $num = db_result(db_query("SELECT COUNT(*) FROM {contact}"));
-    if ($num) {
-      foreach (db_fetch_object($result) as $contact) {
-        $name = str_replace(' ', '_' ,$contact->category);
-
-        $items['contact/%name'] = array(
-          'page arguments' => array('$name'),
-          'access arguments' => array(1), // ??????????????
-          'type' => MENU_CALLBACK,
-
-        );
-      }
-    }
+  $items['contact/%'] = array(
+   'page callback' => 'contact_forms_site_page',
+   'access arguments' => array('access site-wide contact form'),
+   'type' => MENU_CALLBACK,
+   );
   return $items;
 }
-
+/**
+ * Site-wide contact page with arg.
+ */
+function contact_forms_site_page() {
+  require_once(drupal_get_path('module','contact').'/contact.pages.inc');
+  return contact_site_page();
+}
 /**
  * Implementation of hook_form_alter()
  */
