Merge pull request #2692 from sheadawson/formfieldhook

MINOR added onBeforeRender extension hook to FormField
This commit is contained in:
Ingo Schommer 2013-11-28 16:48:18 -08:00
commit eaa390b1de

View File

@ -583,7 +583,7 @@ class FormField extends RequestHandler {
*/
public function Field($properties = array()) {
$obj = ($properties) ? $this->customise($properties) : $this;
$this->extend('onBeforeRender', $this);
return $obj->renderWith($this->getTemplates());
}