/** * init * * @param xxx $hotpot */ function init($hotpot) { parent::init($hotpot); // replace standard jmatch.js with flashcard.js $this->javascripts = preg_grep('/jmatch.js/', $this->javascripts, PREG_GREP_INVERT); array_push($this->javascripts, 'mod/hotpot/attempt/hp/6/jmatch/flashcard.js'); }
/** * init * * @param xxx $hotpot */ function init($hotpot) { parent::init($hotpot); // prepend templates for this output format array_unshift($this->templatesfolders, 'mod/hotpot/attempt/hp/6/jmatch/xml/jmemori/templates'); // replace standard jcloze.js with jmemori.js $this->javascripts = preg_grep('/jmatch.js/', $this->javascripts, PREG_GREP_INVERT); array_push($this->javascripts, 'mod/hotpot/attempt/hp/6/jmatch/jmemori.js'); }