public function render(Varien_Object $row) { $profileId = $row->getProfile(); $referenceId = $row->getReferenceId(); if ($referenceId) { return sprintf('<a href="%s">%s</a>', $this->getUrl('adminhtml/sales_recurring_profile/view', array('profile' => $profileId)), $referenceId); } }