// Add transplant module button to page header toolbar

This commit is contained in:
Jerome Nadaud
2013-10-17 13:24:01 +02:00
parent 983b4dd617
commit 1f93d071c2
@@ -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