silverstripe-framework/forms/ResetFormAction.php

14 lines
233 B
PHP

<?php
/**
* Action that clears all fields on a form.
* Inserts an input tag with type=reset.
* @package forms
* @subpackage actions
*/
class ResetFormAction extends FormAction {
public function Type() {
return 'reset';
}
}