From 1eb795989633b2af143ea6a6c929636ef30a55f1 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 03:19:04 +0000 Subject: [PATCH] ENHANCEMENT #4787 Widget now respects updateCMSFields on extension classes so additional fields can be add (or existing ones removed) (from r99929) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105541 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- widgets/Widget.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/Widget.php b/widgets/Widget.php index 610ab6cd2..96a8d785b 100755 --- a/widgets/Widget.php +++ b/widgets/Widget.php @@ -35,7 +35,9 @@ class Widget extends DataObject { static $description = "Description of what this widget does."; function getCMSFields() { - return new FieldSet(); + $fields = new FieldSet(); + $this->extend('updateCMSFields', $fields); + return $fields; } /**