Index: cck_blocks.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck_blocks/cck_blocks.module,v
retrieving revision 1.2.2.12
diff -u -p -r1.2.2.12 cck_blocks.module
--- cck_blocks.module	18 Mar 2010 19:50:15 -0000	1.2.2.12
+++ cck_blocks.module	18 Mar 2010 22:31:41 -0000
@@ -36,16 +36,16 @@ function cck_blocks_block($op = 'list', 
 
   case 'list':
     $blocks = array();
-      if (count($fields)) {
-        foreach($fields as $field_name => $field_info) {
-          if (variable_get('cck_blocks_' . $field_info['field_name'] . '_block_availability', CCK_BLOCKS_FIELD_BLOCK_DISABLED) == CCK_BLOCKS_FIELD_BLOCK_ENABLED) {
-            $blocks[$field_name] = array(
-              'info' => t('CCK: @field', array('@field' => t($field_info['widget']['label']))),
-              'cache' => BLOCK_NO_CACHE,
-            );
-          }
+    if (count($fields)) {
+      foreach($fields as $field_name => $field_info) {
+        if (variable_get('cck_blocks_' . $field_info['field_name'] . '_block_availability', CCK_BLOCKS_FIELD_BLOCK_DISABLED) == CCK_BLOCKS_FIELD_BLOCK_ENABLED) {
+          $blocks[$field_name] = array(
+            'info' => t('CCK: @field', array('@field' => t($field_info['widget']['label']))),
+            'cache' => BLOCK_NO_CACHE,
+          );
         }
       }
+    }
     return $blocks;
 
   case 'configure':
@@ -59,7 +59,7 @@ function cck_blocks_block($op = 'list', 
         '#collapsed' => TRUE,
         '#description' => t('Prefer raw-text replacements for text to avoid problems with HTML entities!'),
       );
-  
+
       $form['view']['token_help']['help'] = array(
         '#value' => theme('token_help', 'node'),
       );
@@ -71,21 +71,21 @@ function cck_blocks_block($op = 'list', 
 
     // Get the currently viewed node.
     $node = menu_get_object();
-    
+
     /* Determine whether the node's content is being displayed to the user.
      * It is, when any revision is displayed, inlcuding the latest one.
      * For example, the node's content is not visible to the user when he is
      * selecting revisions for comparison or when he is editing the node.
-     */ 
-    $display_nodecontent = (!arg(2) || arg(2) == 'revisions' && is_numeric(arg(3)));
-    
-    /* Only create a block, when a node is loaded, the node's content is displayed 
+     */
+    $display_nodecontent = !arg(2) || (arg(2) == 'revisions' && is_numeric(arg(3)));
+
+    /* Only create a block, when a node is loaded, the node's content is displayed
      * to the user and the requested field is available in the fields array
      */
     if (isset($node->nid) && $display_nodecontent && $fields[$delta]) {
       $nid = $node->nid;
-      
-      // build the node in cck_blocks mode if that hasn't been done yet 
+
+      // build the node in cck_blocks mode if that hasn't been done yet
       if (!isset($built_nodes[$nid])) {
         $node->build_mode = 'cck_blocks';
         $built_nodes[$nid] = node_build_content($node, FALSE, TRUE);
@@ -115,19 +115,19 @@ function cck_blocks_block($op = 'list', 
             $block['title'] = token_replace($title,'node',$built_nodes[$nid]);
           }
         }
-        
+
         /* Use the label of the field as the block's title. Only visible,
          * if the user did not enter a custom title for the block as $block->subject
          *  is replaced by $block->title (if set) in block_list().
-         */ 
+         */
         $block['subject'] = t($fields[$delta]['widget']['label']);
-        
+
         // Set the field's data as the content of the block
         $block['content'] = drupal_render($cck_field_data);
       }
     }
   }
-  
+
   // return the generated block. Might be an empty array, if the block is not to be displayed.
   return $block;
 }
@@ -145,7 +145,7 @@ function cck_blocks_form_alter(&$form, $
         // Break if this is a basic information page.
         break;
       }
-      
+
       $field_name = $form['#field']['field_name'];
 
       // Global settings form
@@ -175,4 +175,4 @@ function cck_blocks_field_settings_submi
   $field_name = $form['#field']['field_name'];
   $global_value = $form_state['values']['global_cck_blocks_settings'];
   variable_set('cck_blocks_' . $field_name . '_block_availability', $global_value);
-}
\ No newline at end of file
+}
