3 class profile_define_checkbox
extends profile_define_base
{
5 function define_form_specific(&$form) {
6 /// select whether or not this should be checked by default
7 $form->addElement('selectyesno', 'defaultdata', get_string('profiledefaultchecked', 'admin'));
8 $form->setDefault('defaultdata', 0); // defaults to 'no'
9 $form->setType('defaultdata', PARAM_BOOL
);