/** * build all the data structures needed to build the form * * @return void * @access public */ function preProcess() { $cid = CRM_Utils_Request::retrieve('cid', 'Positive', $this, false); if ($cid) { CRM_Contact_Form_Task_EmailCommon::preProcessSingle($this, $cid); } else { parent::preProcess(); // we have all the contribution ids, so now we get the contact ids parent::setContactIDs(); } $this->assign('single', $this->_single); }
/** * build all the data structures needed to build the form * * @return void * @access public */ function preProcess() { // store case id if present $this->_caseId = CRM_Utils_Request::retrieve('caseid', 'Positive', $this, false); $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this); $cid = CRM_Utils_Request::retrieve('cid', 'Positive', $this, false); if ($cid || $this->_context == 'standalone') { CRM_Contact_Form_Task_EmailCommon::preProcessSingle($this, $cid); } else { parent::preProcess(); } $this->assign('single', $this->_single); require_once 'CRM/Core/Permission.php'; if (CRM_Core_Permission::check('administer CiviCRM')) { $this->assign('isAdmin', 1); } }