*/ class Mage_Adminhtml_Block_Report_Product_Downloads extends Mage_Adminhtml_Block_Widget_Grid_Container { public function __construct() { $this->_controller = 'report_product_downloads'; $this->_headerText = Mage::helper('reports')->__('Downloads'); parent::__construct(); $this->_removeButton('add'); } protected function _prepareLayout() { $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher') ->setUseConfirm(false) ->setSwitchUrl($this->getUrl('*/*/*', array('store'=>null))) ->setTemplate('report/store/switcher.phtml') ); return parent::_prepareLayout(); } public function getStoreSwitcherHtml() { if (!Mage::app()->isSingleStoreMode()) { return $this->getChildHtml('store_switcher'); } return ''; } public function getGridHtml() { return $this->getStoreSwitcherHtml() . parent::getGridHtml(); } }