protected function _prepareLayout() { //Display store switcher if system has more one store if (!Mage::app()->isSingleStoreMode()) { $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null)))); } return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('rewards')->__('Create New Transfer'), 'onclick' => "setLocation('" . $this->getUrl('*/*/new') . "')", 'class' => 'add'))); /** * Display store switcher if system has more one store */ if (!Mage::app()->isSingleStoreMode()) { $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null)))); } $this->setChild('grid', $this->getLayout()->createBlock('rewards/manage_transfer_grid', 'transfer.grid')); return parent::_prepareLayout(); }