Browse files

Allow extension of "add" link in CMS

First use case is the "translatable" module
  • Loading branch information...
1 parent e486a16 commit f5007a553605f73d2f941d69141df84b63e42a94 @chillu chillu committed Aug 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 code/controllers/CMSMain.php
View
4 code/controllers/CMSMain.php
@@ -203,7 +203,9 @@ protected function LinkWithSearch($link) {
}
function LinkPageAdd() {
- return singleton("CMSPageAddController")->Link();
+ $link = singleton("CMSPageAddController")->Link();
+ $this->extend('updateLinkPageAdd', $link);
+ return $link;
}
/**

0 comments on commit f5007a5

Please sign in to comment.