1
Hello
i want to use the Value of $xoopsModuleConfig['something']
inside a block function .. how so?
for example.
function b_something_blocks_show($options) {
global $xoopsDB, $xoopsModuleConfig;
$block['test'] = $xoopsModuleConfig['something'];
return $block;
}
function b_something_blocks_edit($options) {
$form = "<br />test Option: <select size='1' name='options[0]'><option value='1'";
if ( $xoopsModuleConfig['something'] == 1 ) {
$form .= " selected";
}
$form .= " />Yes</option><option value='0'";
if ( $xoopsModuleConfig['something'] == 0 ) {
$form .= " selected";
}
$form .= " />No</option></select>";
return $form;
}