|
@ -22,13 +22,13 @@ class mod_attforblock_add_form extends moodleform { |
|
|
case NOGROUPS: |
|
|
case NOGROUPS: |
|
|
$mform->addElement('static', 'sessiontypedescription', get_string('sessiontype', 'attforblock'), |
|
|
$mform->addElement('static', 'sessiontypedescription', get_string('sessiontype', 'attforblock'), |
|
|
get_string('commonsession', 'attforblock')); |
|
|
get_string('commonsession', 'attforblock')); |
|
|
$mform->setHelpButton('sessiontypedescription', array('sessiontypes', get_string('sessiontype','attforblock'), 'attforblock')); |
|
|
$mform->addHelpButton('sessiontypedescription', 'sessiontype', 'attforblock'); |
|
|
$mform->addElement('hidden', 'sessiontype', attforblock::SESSION_COMMON); |
|
|
$mform->addElement('hidden', 'sessiontype', attforblock::SESSION_COMMON); |
|
|
break; |
|
|
break; |
|
|
case SEPARATEGROUPS: |
|
|
case SEPARATEGROUPS: |
|
|
$mform->addElement('static', 'sessiontypedescription', get_string('sessiontype', 'attforblock'), |
|
|
$mform->addElement('static', 'sessiontypedescription', get_string('sessiontype', 'attforblock'), |
|
|
get_string('groupsession', 'attforblock')); |
|
|
get_string('groupsession', 'attforblock')); |
|
|
$mform->setHelpButton('sessiontypedescription', array('sessiontypes', get_string('sessiontype','attforblock'), 'attforblock')); |
|
|
$mform->addHelpButton('sessiontypedescription', 'sessiontype', 'attforblock'); |
|
|
$mform->addElement('hidden', 'sessiontype', attforblock::SESSION_GROUP); |
|
|
$mform->addElement('hidden', 'sessiontype', attforblock::SESSION_GROUP); |
|
|
break; |
|
|
break; |
|
|
case VISIBLEGROUPS: |
|
|
case VISIBLEGROUPS: |
|
|