Closed (won't fix)
Project:
Tagadelic
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2011 at 09:50 UTC
Updated:
31 Mar 2012 at 00:18 UTC
Once I have installed and configured this module, I found a trouble to enable its block.
I think that the problem is in the index of the array blocks, after I changed it, I resolved this issue, below the changes that I've made:
function tagadelic_block_info() {
$blocks = array();
foreach (taxonomy_get_vocabularies() as $voc) {
$blocks['tag_'.$voc->vid] = array();
$blocks['tag_'.$voc->vid]['info'] = variable_get('tagadelic_block_title_' . $voc->vid, t('Tags in @voc', array('@voc' => $voc->name)));
$blocks['tag_'.$voc->vid]['cache'] = DRUPAL_CACHE_GLOBAL;
}
return $blocks;
}
Comments
Comment #1
Bèr Kessels commentedWhen you say "trouble", you mean you got an error? If so, please post it here. If not, could you explain your "trouble"?
Comment #2
nidble commentedYes of course, without the changes above, the block doesn't appear on block list.
Comment #3
Bèr Kessels commentedPlease open a pull request on github if you still want this feature.
Comment #4
nidble commentedHi Kessels,
Is it required to commit my changes or they are not necessary because you have already made it?