Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.352 kB
<?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';
}
}
Jump to Line
Something went wrong with that request. Please try again.