original_string: function display_browse_field($recordid, $template) {
          global $DB;
  
          if ($content = $DB->get_record('data_content', array('fieldid' => $this->field->id, 'recordid' => $recordid))) {
              if (isset($content->content)) {
                  $options = new stdClass();
                  if ($this->field->param1 == '1') {  // We are autolinking this field, so disable linking within us
                      $options->filter = false;
                  }
                  $options->para = false;
                  $str = file_rewrite_pluginfile_urls($content->content, 'pluginfile.php', $this->context->id, 'mod_data', 'content', $content->id, $this->get_options());
                  $str = format_text($str, $content->content1, $options);
              } else {
                  $str = '';
              }
              return $str;
          }
          return false;
      }
code: function display_browse_field($recordid, $template) {
          global $DB;
  
          if ($content = $DB->get_record('data_content', array('fieldid' => $this->field->id, 'recordid' => $recordid))) {
              if (isset($content->content)) {
                  $options = new stdClass();
                  if ($this->field->param1 == '1') {  // We are autolinking this field, so disable linking within us
                      $options->filter = false;
                  }
                  $options->para = false;
                  $str = file_rewrite_pluginfile_urls($content->content, 'pluginfile.php', $this->context->id, 'mod_data', 'content', $content->id, $this->get_options());
                  $str = format_text($str, $content->content1, $options);
              } else {
                  $str = '';
              }
              return $str;
          }
          return false;
      }
code_tokens: function display_browse_field ( $ recordid , $ template ) { global $ DB ; if ( $ content = $ DB -> get_record ( 'data_content' , array ( 'fieldid' => $ this -> field -> id , 'recordid' => $ recordid ) ) ) { if ( isset ( $ content -> content ) ) { $ options = new stdClass ( ) ; if ( $ this -> field -> param1 == '1' ) { // We are autolinking this field, so disable linking within us $ options -> filter = false ; } $ options -> para = false ; $ str = file_rewrite_pluginfile_urls ( $ content -> content , 'pluginfile.php' , $ this -> context -> id , 'mod_data' , 'content' , $ content -> id , $ this -> get_options ( ) ) ; $ str = format_text ( $ str , $ content -> content1 , $ options ) ; } else { $ str = '' ; } return $ str ; } return false ; }
docstring: Display the content of the field in browse mode
  
  @param int $recordid
  @param object $template
  @return bool|string
docstring_tokens: Display the content of the field in browse mode