Public Member Functions | |
render (Varien_Object $row) |
Definition at line 35 of file Action.php.
render | ( | Varien_Object $ | row | ) |
Renders column
Varien_Object | $row |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action.
Definition at line 37 of file Action.php.
00038 { 00039 $actions = array(); 00040 00041 if($row->isValidForSend()) { 00042 $actions[] = array( 00043 'url' => $this->getUrl('*/*/toqueue', array('id'=>$row->getId())), 00044 'caption' => Mage::helper('newsletter')->__('Queue Newsletter') 00045 ); 00046 } 00047 00048 $actions[] = array( 00049 'url' => $this->getUrl('*/*/preview', array('id'=>$row->getId())), 00050 'popup' => true, 00051 'caption' => Mage::helper('newsletter')->__('Preview') 00052 ); 00053 00054 $this->getColumn()->setActions($actions); 00055 00056 return parent::render($row); 00057 }