_stateMachine = new CRM_Event_StateMachine_Registration($this, $action); // create and instantiate the pages $this->addPages($this->_stateMachine, $action); $config = CRM_Core_Config::singleton(); //changes for custom data type File $uploadNames = $this->get('uploadNames'); if (is_array($uploadNames) && !empty($uploadNames)) { $this->addActions($config->customFileUploadDir, $uploadNames); } else { // add all the actions $this->addActions(); } } public function invalidKey() { $this->invalidKeyRedirect(); } }