protected function deleteField()
    {
        $this->controlAccess('field_delete');

        if ($this->field->delete($this->data_field['field_id'])) {
            $this->redirect('admin/content/field', $this->text('Field has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Field has not been deleted'), 'warning');
    }
protected function deleteField()
    {
        $this->controlAccess('field_delete');

        if ($this->field->delete($this->data_field['field_id'])) {
            $this->redirect('admin/content/field', $this->text('Field has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Field has not been deleted'), 'warning');
    }
protected function deleteField ( ) { $ this -> controlAccess ( 'field_delete' ) ; if ( $ this -> field -> delete ( $ this -> data_field [ 'field_id' ] ) ) { $ this -> redirect ( 'admin/content/field' , $ this -> text ( 'Field has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Field has not been deleted' ) , 'warning' ) ; }
Deletes a field
Deletes a field