If I go to a nodetype and select "Radios/Checkboxes" as the default display and the default display for my vocabulary is "Default" it will still show up as a dropdown select. It will only display as radios when I select "Radios" under my specific vocabulary.
Comments
Comment #1
timtyler commentedTo fix, change
if (_formtweaker_checkvar($var['taxonomy'][$vid]['style'], $defaults['taxonomy']['style']) == 'radios') {
to:
if (_formtweaker_checkvar($var['taxonomy'][$vid]['style'], $var['taxonomy']['style']) == 'radios') {
and:
function _formtweaker_checkvar($var, $default) {
if (isset($var)) {
return $var;
}
return $default;
}
to:
function _formtweaker_checkvar($var, $default) {
if ($var == "default") {
return $default;
}
if (isset($var)) {
return $var;
}
return $default;
}
Comment #2
timtyler commentedTo fix, change
to:
and:
to:
Comment #3
andyschm commentedPatch works for me. Please apply.