Closed (fixed)
Project:
Web Links
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 May 2009 at 04:31 UTC
Updated:
1 Jun 2009 at 18:05 UTC
It looks like our Variable's on displaying items in the weblink_blocks no longer match up so no blocks are listed.
Thanks
Robert
Comments
Comment #1
nancydruI'm getting blocks on my site. Which variables are messed up?
Comment #2
rmiddle commentedSince the block code is still in the main module and the block module here is what I see. In the main module we have.
function weblinks_group_settings($form_state) {
...
$form[$term->tid]['block'] = array(
'#type' => 'checkbox',
'#title' => t('Create block'),
'#default_value' => variable_get('weblinks_create_block_'. $term->tid, TRUE),
'#description' => t('Check to allow a block for this group to be created.'),
);
Then in the submit function we have.
if (!$values['block']) {
variable_set('weblinks_create_block_'. $values['tid'], $values['block']);
}
else {
variable_del('weblinks_create_block_'. $values['tid']);
}
But that variable doesn't seem to be used at all in function weblinks_blocks_block_list() {
Comment #3
rmiddle commentedLooking at the code this is weird. It looks like it should be displaying them all not displaying none no mater what that setting is set to.
Thanks
Robert
Comment #4
nancydruHere's what I have:
Comment #5
nancydrucommitted
Comment #6
nancydrucleaning the queue