public function do_form_submit() { if ($_REQUEST['type'] == 8 || $_REQUEST['type'] == 9) { $this->get_field_from_name('link_field')->required = true; $this->get_field_from_name('link_module')->required = true; } parent::do_form_submit(); }
public function do_form_submit() { controller::do_database_repair(); parent::do_form_submit(); }