original_string: public function edit_save_data_preprocess($data, $datarecord) {
          if (is_array($data)) {
              $datarecord->dataformat = $data['format'];
              $data = $data['text'];
          }
          return $data;
      }
code: public function edit_save_data_preprocess($data, $datarecord) {
          if (is_array($data)) {
              $datarecord->dataformat = $data['format'];
              $data = $data['text'];
          }
          return $data;
      }
code_tokens: public function edit_save_data_preprocess ( $ data , $ datarecord ) { if ( is_array ( $ data ) ) { $ datarecord -> dataformat = $ data [ 'format' ] ; $ data = $ data [ 'text' ] ; } return $ data ; }
docstring: Process incoming data for the field.
  @param stdClass $data
  @param stdClass $datarecord
  @return mixed|stdClass
docstring_tokens: Process incoming data for the field .