Permalink
Browse files

API CHANGE Removed unused LeftAndMain->callPageMethod(), please use R…

…equestHandler for this instead.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92746 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 44e3966 commit 6e200916eb9ed660c647474f54c479e927f161aa @chillu chillu committed Nov 21, 2009
Showing with 0 additions and 12 deletions.
  1. +0 −12 code/LeftAndMain.php
View
12 code/LeftAndMain.php
@@ -38,7 +38,6 @@ class LeftAndMain extends Controller {
'index',
'ajaxupdateparent',
'ajaxupdatesort',
- 'callPageMethod',
'getitem',
'getsubtree',
'myprofile',
@@ -1051,17 +1050,6 @@ function LogoStyle() {
function MceRoot() {
return MCE_ROOT;
}
-
- /**
- * Use this as an action handler for custom CMS buttons.
- */
- function callPageMethod($data, $form) {
- $methodName = $form->buttonClicked()->extraData();
- $record = $this->currentPage();
- if(!$record) return false;
-
- return $record->$methodName($data, $form);
- }
/**
* Register the given javascript file as required in the CMS.

0 comments on commit 6e20091

Please sign in to comment.