ENHANCEMENT Allow extension of LeftAndMain->getEditForm() (and subclasses) through a new updateEditForm() hook (see r98736 for additions to AssetAdmin and CMSMain)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98737 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-11 01:21:45 +00:00 committed by Sam Minnee
parent a7c0797a9d
commit acece9ed3a

View File

@ -89,6 +89,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
$actions
);
$this->extend('updateEditForm', $form);
return $form;
}
@ -130,6 +132,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
$permissionField = $form->Fields()->dataFieldByName('Permissions');
if($permissionField) $permissionField->setHiddenPermissions(self::$hidden_permissions);
$this->extend('updateEditForm', $form);
return $form;
}