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

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@106112 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-06-03 00:18:52 +00:00
parent 0ea8977cdc
commit 7e0daa8990

View File

@ -76,6 +76,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
if($permissionField) $permissionField->setHiddenPermissions(self::$hidden_permissions); if($permissionField) $permissionField->setHiddenPermissions(self::$hidden_permissions);
} }
$this->extend('updateEditForm', $form);
return $form; return $form;
} }
@ -129,6 +131,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
$actions $actions
); );
$this->extend('updateEditForm', $form);
return $form; return $form;
} }