original_string: public static function editor_options(context_module $context, $postid) {
          global $COURSE, $PAGE, $CFG;
          // TODO: add max files and max size support
          $maxbytes = get_user_max_upload_file_size($PAGE->context, $CFG->maxbytes, $COURSE->maxbytes);
          return array(
              'maxfiles' => EDITOR_UNLIMITED_FILES,
              'maxbytes' => $maxbytes,
              'trusttext'=> true,
              'return_types'=> FILE_INTERNAL | FILE_EXTERNAL,
              'subdirs' => file_area_contains_subdirs($context, 'mod_forum', 'post', $postid)
          );
      }
code: public static function editor_options(context_module $context, $postid) {
          global $COURSE, $PAGE, $CFG;
          // TODO: add max files and max size support
          $maxbytes = get_user_max_upload_file_size($PAGE->context, $CFG->maxbytes, $COURSE->maxbytes);
          return array(
              'maxfiles' => EDITOR_UNLIMITED_FILES,
              'maxbytes' => $maxbytes,
              'trusttext'=> true,
              'return_types'=> FILE_INTERNAL | FILE_EXTERNAL,
              'subdirs' => file_area_contains_subdirs($context, 'mod_forum', 'post', $postid)
          );
      }
code_tokens: public static function editor_options ( context_module $ context , $ postid ) { global $ COURSE , $ PAGE , $ CFG ; // TODO: add max files and max size support $ maxbytes = get_user_max_upload_file_size ( $ PAGE -> context , $ CFG -> maxbytes , $ COURSE -> maxbytes ) ; return array ( 'maxfiles' => EDITOR_UNLIMITED_FILES , 'maxbytes' => $ maxbytes , 'trusttext' => true , 'return_types' => FILE_INTERNAL | FILE_EXTERNAL , 'subdirs' => file_area_contains_subdirs ( $ context , 'mod_forum' , 'post' , $ postid ) ) ; }
docstring: Returns the options array to use in forum text editor
  
  @param context_module $context
  @param int $postid post id, use null when adding new post
  @return array
docstring_tokens: Returns the options array to use in forum text editor