Put comment configuration on the settings tab

This commit is contained in:
Will Rossiter 2012-07-22 09:46:51 +12:00
parent 6d1c5f2b30
commit 8ab18fe1d0

View File

@ -51,9 +51,9 @@ class CommentsExtension extends DataExtension {
* *
* @param FieldSet * @param FieldSet
*/ */
public function updateCMSFields(FieldList $fields) { public function updateSettingsFields(FieldList $fields) {
if($this->attachedToSiteTree()) { if($this->attachedToSiteTree()) {
$fields->addFieldToTab('Root.Behaviour', $fields->addFieldToTab('Root.Settings',
new CheckboxField('ProvideComments', _t('Comment.ALLOWCOMMENTS', 'Allow Comments')) new CheckboxField('ProvideComments', _t('Comment.ALLOWCOMMENTS', 'Allow Comments'))
); );
} }