From 1f93d071c2eb0173b228d117e69609a2c43ed869 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Thu, 17 Oct 2013 13:24:01 +0200 Subject: [PATCH] // Add transplant module button to page header toolbar --- controllers/admin/AdminModulesPositionsController.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/controllers/admin/AdminModulesPositionsController.php b/controllers/admin/AdminModulesPositionsController.php index db413aa5a..489de70fb 100644 --- a/controllers/admin/AdminModulesPositionsController.php +++ b/controllers/admin/AdminModulesPositionsController.php @@ -245,6 +245,16 @@ class AdminModulesPositionsControllerCore extends AdminController )); } + public function initPageHeaderToolbar() + { + $this->page_header_toolbar_btn['save'] = array( + 'href' => self::$currentIndex.'&addToHook'.($this->display_key ? '&show_modules='.$this->display_key : '').'&token='.$this->token, + 'desc' => $this->l('Transplant a module') + ); + + return parent::initPageHeaderToolbar(); + } + public function initMain() { // Init toolbar