set('searchRows', ''); $ssID = $this->get('ssID'); if (isset($ssID)) { $urlParams = 'reset=1&force=1&ssID=' . $ssID; $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this); if (CRM_Utils_Rule::qfKey($qfKey)) { $urlParams .= "&qfKey=$qfKey"; } $url = CRM_Utils_System::url('civicrm/grant/search', $urlParams); $session->replaceUserContext($url); return; } } /** * Build the form object. * * @return void */ public function buildQuickForm() { $this->addButtons(array( array( 'type' => 'done', 'name' => ts('Done'), 'isDefault' => TRUE, ), ) ); } }