assign('grantAdmin', $admin); $this->assign('grantSummary', $grantSummary); } /** * the main function that is called when the page loads, * it decides the which action has to be taken for the page. * * @return null */ public function run() { $this->preProcess(); $controller = new CRM_Core_Controller_Simple('CRM_Grant_Form_Search', ts('grants'), NULL); $controller->setEmbedded(TRUE); $controller->reset(); $controller->set('limit', 10); $controller->set('force', 1); $controller->set('context', 'dashboard'); $controller->process(); $controller->run(); return parent::run(); } }