original_string: protected function deleteImageFieldValue()
      {
          $this->controlAccess('field_value_edit');
  
          $file_ids = $this->getPosted('delete_images', array(), true, 'array');
  
          if (!empty($file_ids) && isset($this->data_field_value['field_value_id'])) {
  
              $db = $disk = 0;
              $file_id = reset($file_ids);
              $this->file->deleteAll($file_id, $db, $disk, false);
              $this->field_value->update($this->data_field_value['field_value_id'], array('file_id' => 0));
          }
      }
code: protected function deleteImageFieldValue()
      {
          $this->controlAccess('field_value_edit');
  
          $file_ids = $this->getPosted('delete_images', array(), true, 'array');
  
          if (!empty($file_ids) && isset($this->data_field_value['field_value_id'])) {
  
              $db = $disk = 0;
              $file_id = reset($file_ids);
              $this->file->deleteAll($file_id, $db, $disk, false);
              $this->field_value->update($this->data_field_value['field_value_id'], array('file_id' => 0));
          }
      }
code_tokens: protected function deleteImageFieldValue ( ) { $ this -> controlAccess ( 'field_value_edit' ) ; $ file_ids = $ this -> getPosted ( 'delete_images' , array ( ) , true , 'array' ) ; if ( ! empty ( $ file_ids ) && isset ( $ this -> data_field_value [ 'field_value_id' ] ) ) { $ db = $ disk = 0 ; $ file_id = reset ( $ file_ids ) ; $ this -> file -> deleteAll ( $ file_id , $ db , $ disk , false ) ; $ this -> field_value -> update ( $ this -> data_field_value [ 'field_value_id' ] , array ( 'file_id' => 0 ) ) ; } }
docstring: Deletes a field value image
docstring_tokens: Deletes a field value image