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');
    }
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');
    }
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' ) ; }
Deletes a category group
Deletes a category group