MyBB Community Forums

Full Version: [D] undefined method Form::generate_checkbox_input()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
admin/modules/config/settings.php lines 1139 and 1143 call a function $form->generate_checkbox_input however that function does not seem to be defined anywhere in the MyBB code (though I could use checkboxes in my plugin, guess I'm out of luck)

mybb_1404.zip.dir $ grep -Einr generate_checkbox .
./admin/modules/config/settings.php:1139:							$option_list[$i] = $form->generate_checkbox_input($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, "checked" => 1, 'class' => $element_id));
./admin/modules/config/settings.php:1143:							$option_list[$i] = $form->generate_checkbox_input($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, 'class' => $element_id));