original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Deletes a field
docstring_tokens: Deletes a field