Permalink
Browse files

Moved callPageMethod to leftandmain, so that I can use it in other CM…

…S controllers

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@40907 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
sminnee committed Aug 27, 2007
1 parent 628105c commit b747f9c42e641a7f6845f43d558da0a43bbc23fd
Showing with 9 additions and 9 deletions.
  1. +0 −9 code/CMSMain.php
  2. +9 −0 code/LeftAndMain.php
View
@@ -1110,15 +1110,6 @@ function testInvitation($data,$form) {
$page = DataObject::get_by_id("SiteTree", $_REQUEST['ID']);
return $page->testInvitation($data,$form);
}
-
- /**
- * Use this as an action handler for custom CMS buttons.
- */
- function callPageMethod($data, $form) {
- $methodName = $form->buttonClicked()->extraData();
- $record = $this->CurrentPage();
- return $record->$methodName($data, $form);
- }
/**
* Provide the permission codes used by LeftAndMain.
View
@@ -765,6 +765,15 @@ function hasReports() {
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();
+ return $record->$methodName($data, $form);
+ }
}
?>

0 comments on commit b747f9c

Please sign in to comment.