setEmbedded(TRUE); $controller->reset(); $controller->set('limit', 12); $controller->set('cid', $this->_contactId); $controller->set('context', 'user'); $controller->set('force', 1); $controller->process(); $controller->run(); //add honor block. $honorParams = array(); $honorParams = CRM_Pledge_BAO_Pledge::getHonorContacts($this->_contactId); if (!empty($honorParams)) { // assign vars to templates $this->assign('pledgeHonorRows', $honorParams); $this->assign('pledgeHonor', TRUE); } $session = CRM_Core_Session::singleton(); $loggedUserID = $session->get('userID'); $this->assign('loggedUserID', $loggedUserID); } /** * This function is the main function that is called when the page * loads, it decides the which action has to be taken for the page. * * return null * @access public */ function run() { parent::preProcess(); $this->listPledges(); } }