original_string: protected function deleteDashboard()
      {
          $this->controlAccess('dashboard_edit');
  
          if ($this->dashboard->delete($this->data_dashboard['dashboard_id'])) {
              $message = $this->text('Your dashboard has been reset');
              $this->redirect('', $message, 'success');
          }
  
          $this->redirect('admin', $this->text('Your dashboard has not been reset'), 'warning');
      }
code: protected function deleteDashboard()
      {
          $this->controlAccess('dashboard_edit');
  
          if ($this->dashboard->delete($this->data_dashboard['dashboard_id'])) {
              $message = $this->text('Your dashboard has been reset');
              $this->redirect('', $message, 'success');
          }
  
          $this->redirect('admin', $this->text('Your dashboard has not been reset'), 'warning');
      }
code_tokens: protected function deleteDashboard ( ) { $ this -> controlAccess ( 'dashboard_edit' ) ; if ( $ this -> dashboard -> delete ( $ this -> data_dashboard [ 'dashboard_id' ] ) ) { $ message = $ this -> text ( 'Your dashboard has been reset' ) ; $ this -> redirect ( '' , $ message , 'success' ) ; } $ this -> redirect ( 'admin' , $ this -> text ( 'Your dashboard has not been reset' ) , 'warning' ) ; }
docstring: Deletes a saved a dashboard record
docstring_tokens: Deletes a saved a dashboard record