# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/ajax_comments/ajax_comments.module
--- contributions/modules/ajax_comments/ajax_comments.module Base (1.1.2.30)
+++ contributions/modules/ajax_comments/ajax_comments.module Locally Modified (Based On 1.1.2.30)
@@ -1,11 +1,12 @@
 <?php
 // $Id: ajax_comments.module,v 1.1.2.30 2009/07/11 19:22:33 neochief Exp $
 
-/*
+/**
  * Implementation of hook_form_alter()
  */
 function ajax_comments_form_alter(&$form, $form_state, $form_id) {
   $node = menu_get_object();
+
   if (!isset($node) && arg(0) == 'ajax_comments') {
     $node = node_load(arg(2));
   }
@@ -17,6 +18,7 @@
       break;
     }
   }
+
   if ($all_allowed || isset($allowed_node_types[$node->type]) && $allowed_node_types[$node->type]) {
     if (($form_id == 'comment_form') && (arg(1) != 'edit') && (arg(1) != 'reply') && (arg(2) != 'edit') && (arg(2) != 'reply')) {
       $form['#prefix'] = '<div id="comment-preview"></div>';
@@ -74,7 +76,7 @@
   }
 }
 
-/*
+/**
  * Implementation of hook_menu()
  */
 function ajax_comments_menu() {
@@ -86,7 +88,7 @@
     'access arguments' => array('administer site configuration'),
    );
   $items['ajax_comments/instant_delete/%'] = array(
-    'page callback' => 'instant_delete',
+    'page callback' => 'ajax_comments_instant_delete',
     'page arguments' => array(2),
     'access arguments' => array('administer comments'),
     'type' => MENU_CALLBACK,
@@ -105,8 +107,7 @@
   return $items;
 }
 
-
-/*
+/**
  * AHAH callback
  */
 function ajax_comments_js() {
@@ -185,7 +186,6 @@
   }
 }
 
-
 function ajax_comments_js_reload_form($nid, $pid = NULL) {
   drupal_set_header('Content-type: text/javascript; charset=utf-8');
 
@@ -197,8 +197,7 @@
   exit();
 }
 
-
-/*
+/**
  * Comment submit routine
  */
 function ajax_comments_submit($form, &$form_state) {
@@ -249,8 +248,7 @@
   return $output;
 }
 
-
-/*
+/**
  * AJAX comments settings form
  */
 function admin_ajax_comments() {
@@ -301,7 +299,7 @@
 /**
  * Comments delete callback
  */
-function instant_delete($cid = 0){
+function ajax_comments_instant_delete($cid = 0){
   // Check token to avoid CSRF attack.
   if ($cid && isset($_GET['token']) && drupal_valid_token($_GET['token'], $cid)) {
     drupal_set_header('Content-type: text/javascript; charset=utf-8');
