--- D:/Eigene Dateien/TRITUM/projects/Drupal/D6/1.1/contributions/modules/cumulus/cumulus.module	Sat Nov 22 08:48:47 2008
+++ C:/Dokumente und Einstellungen/bjacob/Desktop/cumulus/cumulus.module	Sat Nov 22 08:43:25 2008
@@ -108,6 +108,12 @@
         '#maxlength' => 1,
         '#description' => t('Set the font size interval used for the different tag-sizes (level 2 and higher).'),
       );
+      $form['tag_blacklist'] = array(
+        '#type' => 'textarea',
+        '#title' => t('Tag blacklist'),
+        '#default_value' => implode(',', variable_get('cumulus_tag_blacklist', '')),
+        '#description' => t('Enter tags separated by comma.'),
+      );
       return $form;
 
     case 'save':
@@ -123,6 +129,12 @@
       variable_set('cumulus_flash_distribute', $edit['flash_distribute']);
       variable_set('cumulus_flash_font_size', $edit['flash_font_size']);
       variable_set('cumulus_flash_font_size_interval', $edit['flash_font_size_interval']);
+      //store blacklisted tags as array, transform to lower case, remove spaces
+      $tag_blacklist = explode(',', $edit['tag_blacklist']);
+      foreach ($tag_blacklist as $tag) {
+        $tag_blacklist_trimmed[] = strtolower(trim($tag));
+      }
+      variable_set('cumulus_tag_blacklist', $tag_blacklist_trimmed);
       return;
 
     case 'view':
@@ -198,9 +210,11 @@
 function theme_cumulus_weighted($terms) {
   $output = '<tags>';
   foreach ($terms as $term) {
-    // assign font size
-    $font_size = (intval($term->weight) * variable_get('cumulus_flash_font_size_interval', 2)) + (variable_get('cumulus_flash_font_size', 10) - variable_get('cumulus_flash_font_size_interval', 2));
-    $output .= l($term->name, taxonomy_term_path($term), array('attributes' => array('style' => '"font-size: '. $font_size .'px;"'))) ." \n";
+    if (!in_array(strtolower($term->name), variable_get('cumulus_tag_blacklist', ''))) {
+      // assign font size
+      $font_size = (intval($term->weight) * variable_get('cumulus_flash_font_size_interval', 2)) + (variable_get('cumulus_flash_font_size', 10) - variable_get('cumulus_flash_font_size_interval', 2));
+      $output .= l($term->name, taxonomy_term_path($term), array('attributes' => array('style' => '"font-size: '. $font_size .'px;"'))) ." \n";
+    }
   }
   $output .= '</tags>';
   $output = urlencode($output);
