mirror of
https://github.com/moodle/moodle.git
synced 2025-02-22 19:06:51 +01:00
14 lines
409 B
PHP
14 lines
409 B
PHP
<?php
|
|
|
|
class profile_define_checkbox extends profile_define_base {
|
|
|
|
function define_form_specific(&$form) {
|
|
/// select whether or not this should be checked by default
|
|
$form->addElement('selectyesno', 'defaultdata', get_string('profiledefaultchecked', 'admin'));
|
|
$form->setDefault('defaultdata', 0); // defaults to 'no'
|
|
$form->setType('defaultdata', PARAM_BOOL);
|
|
}
|
|
}
|
|
|
|
|