? support-hook_comment_only_for_tickets.patch
Index: support.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/support/support.module,v
retrieving revision 1.3
diff -u -p -r1.3 support.module
--- support.module	13 Jun 2009 19:46:47 -0000	1.3
+++ support.module	22 Nov 2009 20:08:01 -0000
@@ -592,6 +592,13 @@ function support_nodeapi(&$node, $op, $t
 function support_comment(&$comment, $op) {
   global $user;
 
+  /* If it's not a support ticket, we don't need to do anything. */
+  $nid = is_array($comment) ? $comment['nid'] : $comment->nid;
+  $type = db_result(db_query("SELECT type FROM node WHERE nid = %d", $nid));
+  if ($type != 'support_ticket') {
+    return;
+  }
+
   switch ($op) {
     case 'view':
       support_comment_view($comment);
