original_string: public static function attachment_options($forum) {
          global $COURSE, $PAGE, $CFG;
          $maxbytes = get_user_max_upload_file_size($PAGE->context, $CFG->maxbytes, $COURSE->maxbytes, $forum->maxbytes);
          return array(
              'subdirs' => 0,
              'maxbytes' => $maxbytes,
              'maxfiles' => $forum->maxattachments,
              'accepted_types' => '*',
              'return_types' => FILE_INTERNAL | FILE_CONTROLLED_LINK
          );
      }
code: public static function attachment_options($forum) {
          global $COURSE, $PAGE, $CFG;
          $maxbytes = get_user_max_upload_file_size($PAGE->context, $CFG->maxbytes, $COURSE->maxbytes, $forum->maxbytes);
          return array(
              'subdirs' => 0,
              'maxbytes' => $maxbytes,
              'maxfiles' => $forum->maxattachments,
              'accepted_types' => '*',
              'return_types' => FILE_INTERNAL | FILE_CONTROLLED_LINK
          );
      }
code_tokens: public static function attachment_options ( $ forum ) { global $ COURSE , $ PAGE , $ CFG ; $ maxbytes = get_user_max_upload_file_size ( $ PAGE -> context , $ CFG -> maxbytes , $ COURSE -> maxbytes , $ forum -> maxbytes ) ; return array ( 'subdirs' => 0 , 'maxbytes' => $ maxbytes , 'maxfiles' => $ forum -> maxattachments , 'accepted_types' => '*' , 'return_types' => FILE_INTERNAL | FILE_CONTROLLED_LINK ) ; }
docstring: Returns the options array to use in filemanager for forum attachments
  
  @param stdClass $forum
  @return array
docstring_tokens: Returns the options array to use in filemanager for forum attachments