Skip to content

Commit

Permalink
MDL-27627 Headers in moodleform_mod should have IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed May 27, 2011
1 parent 16b5541 commit 3fbe0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/moodleform_mod.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ function standard_coursemodule_elements(){

if (!empty($CFG->enableavailability)) {
// Conditional availability
$mform->addElement('header', '', get_string('availabilityconditions', 'condition'));
$mform->addElement('header', 'availabilityconditionsheader', get_string('availabilityconditions', 'condition'));
$mform->addElement('date_selector', 'availablefrom', get_string('availablefrom', 'condition'), array('optional'=>true));
$mform->addHelpButton('availablefrom', 'availablefrom', 'condition');
$mform->addElement('date_selector', 'availableuntil', get_string('availableuntil', 'condition'), array('optional'=>true));
Expand Down Expand Up @@ -522,7 +522,7 @@ function standard_coursemodule_elements(){
$completion = new completion_info($COURSE);
}
if ($completion->is_enabled()) {
$mform->addElement('header', '', get_string('activitycompletion', 'completion'));
$mform->addElement('header', 'activitycompletionheader', get_string('activitycompletion', 'completion'));

// Unlock button for if people have completed it (will
// be removed in definition_after_data if they haven't)
Expand Down

0 comments on commit 3fbe0e8

Please sign in to comment.