protected function _prepareLayout() { if ($this->getOrderId()) { $this->_addButton('send_email', array('label' => Mage::helper('amemail')->__('Send Email...'), 'onclick' => "setLocation('{$this->_getSendEmailUrl()}')"), 0); } return parent::_prepareLayout(); }