function preProcess(Vtiger_Request $request) { $moduleName = $request->getModule(); $moduleInstance = CRMEntity::getInstance($moduleName); $viewer = $this->getViewer($request); $viewer->assign('CONVERSION_AVAILABLE_STATUS', Zend_Json::encode($moduleInstance->conversion_available_status)); parent::preProcess($request); }
public function showModuleSummaryView($request) { $recordId = $request->get('record'); $moduleName = $request->getModule(); $recordModel = Vtiger_Record_Model::getInstanceById($recordId, $moduleName); $viewer = $this->getViewer($request); $viewer->assign('IMAGE_DETAILS', $recordModel->getImageDetails()); return parent::showModuleDetailView($request); }
function preProcess(Vtiger_Request $request) { $viewer = $this->getViewer($request); $viewer->assign('CONVERSION_AVAILABLE_STATUS', Zend_Json::encode(Leads_Module_Model::getConversionAvaibleStatuses())); parent::preProcess($request); }