From 9f5c223cec7a73512ea6d35a6dbc072e7ad71cea Mon Sep 17 00:00:00 2001
From: Makbul khan <makbul.khan8@gmail.com>
Date: Sat, 10 Oct 2015 01:57:14 +0530
Subject: [PATCH] module #2554401 by tusharbodake: Fixed coding standards and
 minor tweeks on help comments.

---
 comment_bulk_action.module | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/comment_bulk_action.module b/comment_bulk_action.module
index 74d96f3..68d38c9 100644
--- a/comment_bulk_action.module
+++ b/comment_bulk_action.module
@@ -1,11 +1,9 @@
 <?php
 /**
  * @file
- *
- * Description apply Comment configuration to all Existing node.
+ * Apply current comment configuration to all existing comments on nodes.
  */
 
-
 define('COMMENT_BULK_ACTION_CHUNK_SIZE', 5);
 /**
  * Implements hook_form_FORM_ID_alter().
@@ -53,7 +51,6 @@ function comment_bulk_action_form_submit(&$form, &$form_state) {
   $node_form_input = $form_state['values'];
   $node_type = $node_form_input['type'];
   if (1 == $node_form_input['comment_action_all_node']) {
-    // @todo
     // Run batch to updated comment configuration for node.
     $operations = array();
     $node_list = _comment_bulk_action_fetch_nodes($node_type);
@@ -97,7 +94,7 @@ function _comment_bulk_action_fetch_nodes($node_type = NULL) {
 }
 
 /**
- * Actual  node comment configuration update.
+ * Actual node comment configuration update.
  */
 function comment_bulk_action_update_node_comment_configuration($nids, $comment_cofiguration, $operation_status, &$context) {
   $nodes = node_load_multiple(array_keys($nids));
@@ -110,14 +107,14 @@ function comment_bulk_action_update_node_comment_configuration($nids, $comment_c
 }
 
 /**
- * Count the number HTTPrequest needed to complete batch operation.
+ * Count the number HTTP request needed to complete batch operation.
  */
 function _comment_bulk_action_batch_update_http_requests() {
   $_SESSION['http_request_count']++;
 }
 
 /**
- * Get count the number HTTPrequest needed to complete batch operation.
+ * Get count the number HTTP request needed to complete batch operation.
  */
 function _comment_bulk_action_batch_get_http_requests() {
   return !empty($_SESSION['http_request_count']) ? $_SESSION['http_request_count'] : 0;
@@ -131,7 +128,7 @@ function comment_bulk_action_finished_update_node_comment_configuration($success
     // Here we could do something meaningful with the results.
     // We just display the number of nodes we processed...
     drupal_set_message(t('Processed in @requests HTTP requests.', array('@count' => count($results), '@requests' => _comment_bulk_action_batch_get_http_requests())));
-    drupal_set_message(t('All existing nodes updated for comment configuration successfully.'));
+    drupal_set_message(t('All existing comments on nodes are updated successfully with current comment configuration.'));
   }
   else {
     // An error occurred.
-- 
1.9.1

