From bd9c74e7a6a35b0b0fcd4c62183116f01dc27986 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Sun, 2 Dec 2007 21:28:41 +0000 Subject: [PATCH] Added skeletal registration module for merge project (merged from branches/2.2.0@45907, r45385) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46097 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Member.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/security/Member.php b/security/Member.php index 3182f82e3..4a993a703 100644 --- a/security/Member.php +++ b/security/Member.php @@ -231,18 +231,22 @@ class Member extends DataObject { /** - * Returns the fields for the member form + * Returns the fields for the member form - used in the registration/profile module. + * It should return fields that are editable by the admin and the logged-in user. * * @return FieldSet Returns a {@link FieldSet} containing the fields for * the member form. */ function getMemberFormFields() { - return new FieldSet( + $fields = new FieldSet( new TextField("FirstName", _t('Member.FIRSTNAME', 'First Name')), new TextField("Surname", _t('Member.SURNAME', "Surname")), new TextField("Email", _t('Member.EMAIL', "Email", PR_MEDIUM, 'Noun')), new TextField("Password", _t('Member.PASSWORD', 'Password')) ); + + $this->extend('augmentMemberFormFields', $fields); + return $fields; }