/** * Clears log file * */ function clearlog() { RedeventHelperLog::clear(); $msg = JText::_('COM_REDEVENT_LOG_CLEARED'); $this->setRedirect('index.php?option=com_redevent&view=log', $msg); $this->redirect(); }