Example #1
0
 public function render(Varien_Object $row)
 {
     $this->getColumn()->setActions(array(array('url' => $this->getUrl('*/adminhtml_simplegoogleshopping/generate', array('simplegoogleshopping_id' => $row->getSimplegoogleshoppingId())), 'confirm' => Mage::helper('simplegoogleshopping')->__('Generate a data feed can take a while. Are you sure you want to generate it now ?'), 'caption' => Mage::helper('simplegoogleshopping')->__('Generate')), array('url' => $this->getUrl('*/adminhtml_simplegoogleshopping/edit', array('id' => $row->getSimplegoogleshoppingId())), 'caption' => Mage::helper('simplegoogleshopping')->__('Edit')), array('url' => $this->getUrl('*/adminhtml_simplegoogleshopping/sample', array('simplegoogleshopping_id' => $row->getSimplegoogleshoppingId(), 'limit' => 10)), 'caption' => Mage::helper('simplegoogleshopping')->__('Preview') . " (" . Mage::getStoreConfig("simplegoogleshopping/system/preview") . " " . Mage::helper('simplegoogleshopping')->__('products') . ")", 'popup' => true)));
     return parent::render($row);
 }