Permalink
Browse files

ENHANCEMENT Allow extension of LeftAndMain->getEditForm() (and subcla…

…sses) 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
  • Loading branch information...
1 parent 0ea8977 commit 7e0daa899029e2f514bc096c603d4cd7bcf9049e @chillu chillu committed Jun 3, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 code/SecurityAdmin.php
View
@@ -76,6 +76,8 @@ function getEditForm($id = null) {
if($permissionField) $permissionField->setHiddenPermissions(self::$hidden_permissions);
}
+ $this->extend('updateEditForm', $form);
+
return $form;
}
@@ -128,6 +130,8 @@ function RootForm() {
$fields,
$actions
);
+
+ $this->extend('updateEditForm', $form);
return $form;
}

0 comments on commit 7e0daa8

Please sign in to comment.