? advcontact-6.x.patch
Index: advcontact.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/advcontact/advcontact.info,v
retrieving revision 1.1
diff -u -p -r1.1 advcontact.info
--- advcontact.info	23 Feb 2007 23:35:27 -0000	1.1
+++ advcontact.info	18 Aug 2008 19:24:14 -0000
@@ -1,3 +1,4 @@
 name = Advanced Contact
 description = Provides additional features to the default drupal contact form.
-dependencies = contact
\ No newline at end of file
+dependencies[] = contact
+core = 6.x
Index: advcontact.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/advcontact/advcontact.module,v
retrieving revision 1.1
diff -u -p -r1.1 advcontact.module
--- advcontact.module	23 Feb 2007 23:35:27 -0000	1.1
+++ advcontact.module	18 Aug 2008 19:24:14 -0000
@@ -6,16 +6,9 @@
 /**
  * Implementation of hook_help().
  */
-function advcontact_help($section) {
-  if ($section == 'admin/help#advcontact') {
-    return t('This module provides extra functionality to the the default drupal contact module.<br/>' .
-        'With it you can:' .
-        '<ul>' .
-        '<li>Pass "category" as a GET arguement to set the category of the contact.  This coresponds directly to the text of the category.</li>' .
-        '<li>Pass "subject" as a GET arguement to set the subject of the contact form.</li>' .
-        '</ul>' .
-        'An example would be:<br />' .
-        "<code>l('Provide feedback about our new frontpage', 'contact', NULL, 'category=Website feedback&subject=New frontpage feedback')</code>");
+function advcontact_help($path, $arg) {
+  if ($path == 'admin/help#advcontact') {
+    return t("This module provides extra functionality to the the default drupal contact module.<br/>\nWith it you can:\n<ul>\n<li>Pass \"category\" as a GET argument to set the category of the contact.  This coresponds directly to the text of the category.</li>\n<li>Pass \"subject\" as a GET arguement to set the subject of the contact form.</li>\n</ul>\nAn example would be:<br />\n<code>l('Provide feedback about our new frontpage', 'contact', NULL, 'category=Website feedback&subject=New frontpage feedback')</code>");
   }
 }
 
@@ -24,7 +17,7 @@ function advcontact_help($section) {
  *
  * This is where we modify the contact form to provide our new functionality.
  */
-function advcontact_form_alter($form_id, &$form) {
+function advcontact_form_alter(&$form, $form_state, $form_id) {
   if ($form_id == 'contact_mail_page') {
     if ($cat = $_GET['category']) {
       $cid = array_search($cat, $form['cid']['#options']);
