mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
a7c0797a9d
commit
acece9ed3a
@ -89,6 +89,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
$actions
|
$actions
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$this->extend('updateEditForm', $form);
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,6 +132,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
$permissionField = $form->Fields()->dataFieldByName('Permissions');
|
$permissionField = $form->Fields()->dataFieldByName('Permissions');
|
||||||
if($permissionField) $permissionField->setHiddenPermissions(self::$hidden_permissions);
|
if($permissionField) $permissionField->setHiddenPermissions(self::$hidden_permissions);
|
||||||
|
|
||||||
|
$this->extend('updateEditForm', $form);
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user