protected function deleteCollection()
    {
        $this->controlAccess('collection_delete');

        if ($this->collection->delete($this->data_collection['collection_id'])) {
            $this->redirect('admin/content/collection', $this->text('Collection has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Collection has not been deleted'), 'warning');
    }
protected function deleteCollection()
    {
        $this->controlAccess('collection_delete');

        if ($this->collection->delete($this->data_collection['collection_id'])) {
            $this->redirect('admin/content/collection', $this->text('Collection has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Collection has not been deleted'), 'warning');
    }
protected function deleteCollection ( ) { $ this -> controlAccess ( 'collection_delete' ) ; if ( $ this -> collection -> delete ( $ this -> data_collection [ 'collection_id' ] ) ) { $ this -> redirect ( 'admin/content/collection' , $ this -> text ( 'Collection has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Collection has not been deleted' ) , 'warning' ) ; }
Deletes a collection
Deletes a collection