Pop-up de alerta desativado em formulários de envio no Moodle

class example_form extends moodleform {

public function definition() {

$mform
=& $this->_form;

.....code form ....

// Use this function to disabled alert popup.
$mform
->disable_form_change_checker();
}
}