Skip to content
This repository
Browse code

Allow extension of "add" link in CMS

First use case is the "translatable" module
  • Loading branch information...
commit f5007a553605f73d2f941d69141df84b63e42a94 1 parent e486a16
Ingo Schommer authored August 16, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  code/controllers/CMSMain.php
4  code/controllers/CMSMain.php
@@ -203,7 +203,9 @@ protected function LinkWithSearch($link) {
203 203
 	}
204 204
 
205 205
 	function LinkPageAdd() {
206  
-		return singleton("CMSPageAddController")->Link();
  206
+		$link = singleton("CMSPageAddController")->Link();
  207
+		$this->extend('updateLinkPageAdd', $link);
  208
+		return $link;
207 209
 	}
208 210
 	
209 211
 	/**

0 notes on commit f5007a5

Please sign in to comment.
Something went wrong with that request. Please try again.