Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow extension of "add" link in CMS

First use case is the "translatable" module
  • Loading branch information...
commit f5007a553605f73d2f941d69141df84b63e42a94 1 parent e486a16
@chillu chillu authored
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;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.