original_string: protected function deleteCategoryGroup()
      {
          $this->controlAccess('category_group_delete');
  
          if ($this->category_group->delete($this->data_category_group['category_group_id'])) {
              $this->redirect('admin/content/category-group', $this->text('Category group has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Category group has not been deleted'), 'warning');
      }
code: protected function deleteCategoryGroup()
      {
          $this->controlAccess('category_group_delete');
  
          if ($this->category_group->delete($this->data_category_group['category_group_id'])) {
              $this->redirect('admin/content/category-group', $this->text('Category group has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Category group has not been deleted'), 'warning');
      }
code_tokens: protected function deleteCategoryGroup ( ) { $ this -> controlAccess ( 'category_group_delete' ) ; if ( $ this -> category_group -> delete ( $ this -> data_category_group [ 'category_group_id' ] ) ) { $ this -> redirect ( 'admin/content/category-group' , $ this -> text ( 'Category group has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Category group has not been deleted' ) , 'warning' ) ; }
docstring: Deletes a category group
docstring_tokens: Deletes a category group