public function render(Varien_Object $row) { if ($row->getAccountId()) { return sprintf(' <a href="%s" title="%s">%s</a>', $this->getUrl('affiliateplusadmin/adminhtml_account/edit/', array('_current' => true, 'id' => $row->getAccountId())), Mage::helper('affiliateplus')->__('View Affiliate Account Details'), $row->getAccountEmail()); } return $row->getAccountEmail(); }