Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Removed temporary preview links in CMSPageEditController

  • Loading branch information...
commit 07094f5b10460854eb9292be9e4a0d2016455f8f 1 parent ab3fe3e
Ingo Schommer chillu authored
Showing with 0 additions and 13 deletions.
  1. +0 −13 code/controller/CMSPageEditController.php
13 code/controller/CMSPageEditController.php
View
@@ -4,18 +4,5 @@ class CMSPageEditController extends CMSMain {
static $url_segment = 'page/edit';
static $url_rule = '/$Action/$ID/$OtherID';
static $url_priority = 41;
-
- function getEditForm($id = null, $fields = null) {
- $record = $this->getRecord($id ? $id : $this->currentPageID());
- $form = parent::getEditForm($record, ($record) ? $record->getCMSFields() : null);
- // TODO Replace with preview button
- $form->Fields()->addFieldToTab(
- 'Root.Main',
- new LiteralField('SwitchView', sprintf('<div class="cms-switch-view field"><label>Preview:</label><div class="middleColumn">%s</div></div>', $this->SwitchView()))
- );
-
- return $form;
- }
-
}
Please sign in to comment.
Something went wrong with that request. Please try again.