original_string: protected function submitEditField()
      {
          if ($this->isPosted('delete')) {
              $this->deleteField();
          } else if ($this->isPosted('save') && $this->validateEditField()) {
              if (isset($this->data_field['field_id'])) {
                  $this->updateField();
              } else {
                  $this->addField();
              }
          }
      }
code: protected function submitEditField()
      {
          if ($this->isPosted('delete')) {
              $this->deleteField();
          } else if ($this->isPosted('save') && $this->validateEditField()) {
              if (isset($this->data_field['field_id'])) {
                  $this->updateField();
              } else {
                  $this->addField();
              }
          }
      }
code_tokens: protected function submitEditField ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteField ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditField ( ) ) { if ( isset ( $ this -> data_field [ 'field_id' ] ) ) { $ this -> updateField ( ) ; } else { $ this -> addField ( ) ; } } }
docstring: Handles a submitted field data
docstring_tokens: Handles a submitted field data