Patching Tagadelic module for Drupal
I have just patched Tagadelic module for Drupal to fix a bug regarding number of levels in its block. The patch has been submitted here.
=== modified file 'tagadelic.module' --- tagadelic.module 2007-02-23 08:24:13 +0000 +++ tagadelic.module 2007-02-23 08:24:47 +0000 @@ -316,7 +316,7 @@ if ($op == 'view') { if ($voc = taxonomy_get_vocabulary($delta)) { $blocks['subject'] = variable_get('tagadelic_block_title_'. $delta, t('tags in @voc', array('@voc' => $voc->name))); - $tags = tagadelic_get_weighted_tags(array($voc->vid),6, variable_get('tagadelic_block_tags_'. $delta, 12)); + $tags = tagadelic_get_weighted_tags(array($voc->vid), variable_get('tagadelic_levels', 6), variable_get('tagadelic_block_tags_'. $delta, 12)); $tags = tagadelic_sort_tags($tags); $blocks['content'] = theme('tagadelic_weighted', $tags);//return a chunk of 12 tags }
- sugree's blog
- 1245 reads
Recent comments
2 years 11 weeks ago
2 years 15 weeks ago
2 years 16 weeks ago
2 years 16 weeks ago
2 years 17 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 20 weeks ago