Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Renamed SiteTree->getEditFormFields() to getCMSFields() (includ…

…ing new decorator hook for 'updateCMSFields'). Renamed SiteTree->getEditFormActions() to getCMSActions() (including new decorator hook for 'updateCMSActions'). Old API was never released (from r100967)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@111551 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 059866556a08086b36142fed1daf5dc9a1fbc0fc 1 parent 67db4ce
@sminnee sminnee authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 core/model/SiteConfig.php
View
12 core/model/SiteConfig.php
@@ -37,11 +37,11 @@ public static function disable_theme($theme) {
/**
* Get the fields that are sent to the CMS. In
- * your decorators: updateEditFormFields(&$fields)
+ * your decorators: updateCMSFields(&$fields)
*
* @return Fieldset
*/
- function getFormFields() {
+ function getCMSFields() {
$fields = new FieldSet(
new TabSet("Root",
new Tab('Main',
@@ -94,7 +94,8 @@ function getFormFields() {
$fields->makeFieldReadonly($titleField);
}
- $this->extend('updateEditFormFields', $fields);
+ $this->extend('updateCMSFields', $fields);
+
return $fields;
}
@@ -117,7 +118,7 @@ public function getAvailableThemes($baseDir = null) {
*
* @return Fieldset
*/
- function getFormActions() {
+ function getCMSActions() {
if (Permission::check('ADMIN') || Permission::check('EDIT_SITECONFIG')) {
$actions = new FieldSet(
new FormAction('save_siteconfig', 'Save')
@@ -126,7 +127,8 @@ function getFormActions() {
$actions = new FieldSet();
}
- $this->extend('updateEditFormActions', $actions);
+ $this->extend('updateCMSActions', $actions);
+
return $actions;
}
Please sign in to comment.
Something went wrong with that request. Please try again.