original_string: protected function submitEditFieldValue()
      {
          if ($this->isPosted('delete')) {
              $this->deleteFieldValue();
          } else if ($this->isPosted('save') && $this->validateEditFieldValue()) {
              $this->deleteImageFieldValue();
              if (isset($this->data_field_value['field_value_id'])) {
                  $this->updateFieldValue();
              } else {
                  $this->addFieldValue();
              }
          }
      }
code: protected function submitEditFieldValue()
      {
          if ($this->isPosted('delete')) {
              $this->deleteFieldValue();
          } else if ($this->isPosted('save') && $this->validateEditFieldValue()) {
              $this->deleteImageFieldValue();
              if (isset($this->data_field_value['field_value_id'])) {
                  $this->updateFieldValue();
              } else {
                  $this->addFieldValue();
              }
          }
      }
code_tokens: protected function submitEditFieldValue ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteFieldValue ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditFieldValue ( ) ) { $ this -> deleteImageFieldValue ( ) ; if ( isset ( $ this -> data_field_value [ 'field_value_id' ] ) ) { $ this -> updateFieldValue ( ) ; } else { $ this -> addFieldValue ( ) ; } } }
docstring: Handles a submitted field value data
docstring_tokens: Handles a submitted field value data