$allowed_actions for GridField subclass

Taken from https://github.com/silverstripe/silverstripe-subsites/pull/94,
thanks @frankmullenger
This commit is contained in:
Ingo Schommer 2013-07-10 11:42:59 +02:00
parent b17e49fcd0
commit ac507ddc7b
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@ class GridFieldSubsiteDetailForm extends GridFieldDetailForm {
}
class GridFieldSubsiteDetailForm_ItemRequest extends GridFieldDetailForm_ItemRequest {
private static $allowed_actions = array(
'ItemEditForm',
);
/**
* Builds an item edit form. The arguments to getCMSFields() are the popupController and
* popupFormName, however this is an experimental API and may change.