mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Moved callPageMethod to leftandmain, so that I can use it in other CMS controllers
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@40907 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
628105c410
commit
b747f9c42e
@ -1111,15 +1111,6 @@ HTML;
|
||||
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.
|
||||
* Can't put it on LeftAndMain since that's an abstract base class.
|
||||
|
@ -765,6 +765,15 @@ JS;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user