Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / user / profile / field / checkbox / define.class.php
blob15e72817cb0c528c789ce453bc835b0ea57b2447
1 <?php // $Id$
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);