Hello, This is my first try at this and I can't seem to get past this point. I'm writing a block and want to be able to display some values from selected checkboxes in its configuration. I am attempting to pass the variables to a template through a preprocess function and can't get it to work. Here's the applicable code:
In the hook_block_configure function:
$form['display_type'] = array(
'#type' => 'radios',
'#options' => drupal_map_assoc(array(t('Random Entry Selection'), t('Fixed Selection'))),
'#title' => t('Pick a Display Type'),
);
In the hook_block_save function:
variable_set('display_type',$edit[display_type]);
And in my preprocess function:
$test = variable_get('display_type');
$vars['tester'] = $test;
Thanks ahead of time for any help, I've been knocking my brain against this for awhile.
Also, lastly, here's the full module code that's creating the block in case my edit skipped important parts:
<?php
/**
* largepanel_block_info()
*/
function large_panel_block_info(){
$blocks['large_panel_block'] = array(
'info' => t('Large Panel'),
'cache' => -1,
);
return $blocks;
};
/**
* large_panel_block_configure()
*/
function large_panel_block_configure($delta){
$form = array();