Index: refine_by_taxo.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/refine_by_taxo/refine_by_taxo.module,v
retrieving revision 1.8
diff -u -p -r1.8 refine_by_taxo.module
--- refine_by_taxo.module	18 Feb 2007 16:24:25 -0000	1.8
+++ refine_by_taxo.module	20 Feb 2007 21:11:08 -0000
@@ -2,17 +2,6 @@
 //$Id: refine_by_taxo.module,v 1.8 2007/02/18 16:24:25 ber Exp $
 
 /**
- * implementation of hook_help
- */
-function refine_by_taxo_help($section) {
-  switch ($section) {
-    case 'admin/modules#description':
-      $output = t('Provides blocks that enable you to refine a taxonomy view. Some features only work when tagadelic is installed.');
-      return $output;
-  }
-}
-
-/**
  * Implementation of hook_block
  */
 function refine_by_taxo_block($op, $delta = 'and_node', $edit = array()) {
@@ -41,7 +30,7 @@ function refine_by_taxo_block($op, $delt
 function refine_by_taxo_list_blocks() {
   //NOTE: delta cannot become longer then 32 chars!
   foreach (taxonomy_get_vocabularies() as $vid => $voc) {
-    $blocks[$voc->vid]['info'] = variable_get('refine_by_taxo_block_title_'. $voc->vid, t('refine with terms from %voc', array('%voc' => $voc->name)));
+    $blocks[$voc->vid]['info'] = variable_get('refine_by_taxo_block_title_'. $voc->vid, t('refine with terms from !voc', array('!voc' => $voc->name)));
   }
   return $blocks;
 }
@@ -51,7 +40,7 @@ function refine_by_taxo_configure_blocks
   $form['title'] = array(
     '#type' => 'textfield',
     '#title' => t('Block title'),
-    '#default_value' => variable_get('refine_by_taxo_block_title_'. $delta, t('refine with terms from %voc', array('%voc' => $voc->name))),
+    '#default_value' => variable_get('refine_by_taxo_block_title_'. $delta, t('refine with terms from !voc', array('!voc' => $voc->name))),
     '#maxlength' => 64,
     '#description' => t('The title of the block as shown to the user.'),
   );
@@ -67,7 +56,7 @@ function refine_by_taxo_configure_blocks
     '#title' => t('Type of relation'),
     '#default_value' => variable_get('refine_by_taxo_type_'. $delta, 'and_node'),
     '#options' => _refine_by_taxo_options(),
-    '#description' => t('The type of relation to refine trough.'),
+    '#description' => t('The type of relation to refine through.'),
   );
   return $form;
 }
@@ -118,7 +107,7 @@ function refine_by_taxo_view_blocks($del
   $content = refine_by_taxo_build_body($terms, $op);
   if (strlen($content) > 0) {
     $block['content'] = $content;
-    $block['subject'] = variable_get('refine_by_taxo_block_title_'. $delta, t('refine with terms from %voc', array('%voc' => $voc->name)));
+    $block['subject'] = variable_get('refine_by_taxo_block_title_'. $delta, t('refine with terms from !voc', array('!voc' => $voc->name)));
   }
   return $block;
 }
@@ -240,8 +229,9 @@ function refine_by_taxo_find_related_ter
   }
 
   foreach ($tids as $tid) {
-    if ($i <= variable_get('refine_by_taxo_block_tags_'. $delta, 12))
+    if ($i <= variable_get('refine_by_taxo_block_tags_'. $delta, 12)) {
       $terms[$tid] = taxonomy_get_term($tid);
+    }
     else {
       return $terms;
     }
