/** * Clear the logs * * @access public * @return string */ public function _comm_clear() { clear_logs(); return $this->EE->lang->line('logs.logs_cleared'); }
/** * Clear Logs */ function clear_logs() { // ------------------------------------- // Process Delete // ------------------------------------- if( $this->EE->input->get_post('clear_confirm') == TRUE ): clear_logs(); $this->EE->session->set_flashdata('message_success', $this->EE->lang->line('trigger_logs_cleared')); $this->EE->functions->redirect($this->module_base.AMP.'&method=logs'); else: $this->EE->cp->set_breadcrumb($this->module_base, $this->EE->lang->line('trigger_module_name')); $this->EE->cp->set_breadcrumb($this->module_base.AMP.'method=logs', $this->EE->lang->line('trigger_logs')); $this->EE->cp->set_variable('cp_page_title', $this->EE->lang->line('trigger_clear_logs')); return $this->EE->load->view('clear_logs', '', TRUE); endif; }