protected function _prepareLayout() { parent::_prepareLayout(); if (Mage::getStoreConfig('newrelic/embeded/enabled')) { $this->addTab('newrelic', array('label' => $this->__('NewRelic'), 'content' => $this->getLayout()->createBlock('newrelic/adminhtml_dashboard_tab_newrelic')->toHtml())); } return $this; }
/** * Adds the tab for the tracking chart * to the tab bar. * * @return Faett_Piwik_Block_Adminhtml_Dashboard_Diagrams The instance */ protected function _prepareLayout() { // initialize the parent tabs parent::_prepareLayout(); // check if tracking is enabled if (!Mage::getStoreConfigFlag('piwik/piwik/active')) { return; } // add the tab for the tracking chart $this->addTab('tracking', array('label' => $this->__('Tracking'), 'content' => $this->getLayout()->createBlock('piwik/adminhtml_dashboard_tab_tracking')->toHtml())); // return the instance itself return $this; }