content_only = true; } public function checkAccess() { return strcmp(Tools::getValue('token', ''), $this->module->secure_key) === 0; } public function displayAjaxSubscribeNewsletter() { $this->module->newsletterRegistration(); $this->context->smarty->assign(array( 'message_type' => ($this->module->valid && !$this->module->error) ? 'success' : 'error', 'message' => ($this->module->valid && !$this->module->error) ? $this->module->valid : $this->module->error, )); $response = array( 'status' => true, 'message_html' => $this->context->smarty->fetch( $this->module->getTemplatePath('subscription_execution.tpl') ), ); $this->ajaxDie(json_encode($response)); } }