Allow extension of "add" link in CMS

First use case is the "translatable" module
This commit is contained in:
Ingo Schommer 2012-08-16 09:29:51 +02:00
parent e486a16a8f
commit f5007a5536

View File

@ -203,7 +203,9 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
}
function LinkPageAdd() {
return singleton("CMSPageAddController")->Link();
$link = singleton("CMSPageAddController")->Link();
$this->extend('updateLinkPageAdd', $link);
return $link;
}
/**