public function dounlockemails(array $data, Form $form) { if (!$form->validate()) { return $this->redirectBack(); } Session::set('Guestbook-ShowEmails', true); // Add a flash message for the user if (method_exists('Page_Controller', 'addMessage')) { Page_Controller::addMessage(_t('GuestbookController.EMAILPROTECTIONUNLOCKED', 'Successfully unlocked E-mail addresses'), 'Success'); } return $this->redirect($this->Link()); }