// Add new country button to countries controller

This commit is contained in:
Jerome Nadaud
2013-10-09 09:51:25 +02:00
parent daa1cc47db
commit d448891065
@@ -114,6 +114,18 @@ class AdminCountriesControllerCore extends AdminController
parent::__construct();
}
public function initPageHeaderToolbar()
{
if (empty($this->display))
$this->page_header_toolbar_btn['new_country'] = array(
'href' => self::$currentIndex.'&addcountry&token='.$this->token,
'desc' => $this->l('Add new country'),
'icon' => 'process-icon-new'
);
parent::initPageHeaderToolbar();
}
/**
* AdminController::setMedia() override
* @see AdminController::setMedia()