// buttons
$submit_string = get_string('usethiscourse');
- $this->add_action_buttons(false, true, $submit_string);
+ $this->add_action_buttons(false, $submit_string);
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);
$mform->addElement('text', 'fromcoursesearch', get_string('searchcourses'));
// buttons
- $this->add_action_buttons(false, true, get_string('searchcourses'));
+ $this->add_action_buttons(false, get_string('searchcourses'));
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);
$mform->setHelpButton('userfile', array('attachment', get_string('attachment', 'forum'), 'forum'));
- $this->add_action_buttons(false, true, $strimportgroups);
+ $this->add_action_buttons(false, $strimportgroups);
}
$mform->addRule('cczip', get_string('missingzip', 'enrol_authorize'), 'required', null, 'client');
$mform->addRule('cczip', get_string('missingzip', 'enrol_authorize'), 'numeric', null, 'client');
- $this->add_action_buttons(false, true, get_string('sendpaymentbutton', 'enrol_authorize'));
+ $this->add_action_buttons(false, get_string('sendpaymentbutton', 'enrol_authorize'));
}
function validation($data)
// buttons
if (empty($USER->preference['auth_forcepasswordchange'])) {
- $this->add_action_buttons(true, false);
+ $this->add_action_buttons(true);
} else {
- $this->add_action_buttons(false, false);
+ $this->add_action_buttons(false);
}
}
$mform->addElement('hidden', 'action', 'find');
$mform->setType('action', PARAM_ALPHA);
- $this->add_action_buttons(true, false, get_string('ok'));
+ $this->add_action_buttons(true, get_string('ok'));
}
}
$mform->setDefault('country', '');
// buttons
- $this->add_action_buttons(true, false, get_string('createaccount'));
+ $this->add_action_buttons(true, get_string('createaccount'));
}
} else {
$submit_string = get_string('posttoforum', 'forum');
}
- $this->add_action_buttons(false, true, $submit_string);
+ $this->add_action_buttons(false, $submit_string);
$mform->addElement('hidden', 'course');
$mform->setType('course', PARAM_INT);