silverstripe-framework/forms/ResetFormAction.php
2012-04-15 10:50:19 +12:00

22 lines
352 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 {
function getAttributes() {
return array_merge(
parent::getAttributes(),
array('type' => 'reset')
);
}
function Type() {
return 'resetformaction';
}
}