Skip to content

Commit

Permalink
MINOR Removed temporary preview links in CMSPageEditController
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Aug 12, 2011
1 parent ab3fe3e commit 07094f5
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions code/controller/CMSPageEditController.php
Expand Up @@ -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;
}

}

0 comments on commit 07094f5

Please sign in to comment.