MDL-46269 tool_httpsreplace: Make tool ready for core
Remove known domains add config for renames Fix coding style Add capability checks Add page setters Match moodle string style Disable form change checker for form Add todo issue Fix docs Bump version
This commit is contained in:
committed by
Marina Glancy
parent
836226c4ad
commit
7821d93aa6
@@ -30,9 +30,14 @@ require_once("$CFG->libdir/formslib.php");
|
||||
|
||||
/**
|
||||
* Site wide http -> https search-replace form.
|
||||
* @copyright Copyright (c) 2016 Blackboard Inc. (http://www.blackboard.com)
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class form extends \moodleform {
|
||||
|
||||
/**
|
||||
* Define the form.
|
||||
*/
|
||||
public function definition() {
|
||||
$mform = $this->_form;
|
||||
|
||||
@@ -40,6 +45,7 @@ class form extends \moodleform {
|
||||
$mform->setExpanded('confirmhdr', true);
|
||||
$mform->addElement('checkbox', 'sure', get_string('disclaimer', 'tool_httpsreplace'));
|
||||
$mform->addRule('sure', get_string('required'), 'required', null, 'client');
|
||||
$mform->disable_form_change_checker();
|
||||
|
||||
$this->add_action_buttons(false, get_string('doit', 'tool_httpsreplace'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user