*/ class Mage_Adminhtml_Block_Report_Product_Lowstock extends Mage_Adminhtml_Block_Widget_Grid_Container { public function __construct() { $this->_controller = 'report_product_lowstock'; $this->_headerText = Mage::helper('reports')->__('Low stock'); 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 ''; } return $this->getChildHtml('store_switcher'); } public function getGridHtml() { return $this->getStoreSwitcherHtml() . parent::getGridHtml(); } }