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
        );
    }
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
        );
    }
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 ) ; }
Returns the options array to use in filemanager for forum attachments

@param stdClass $forum
@return array
Returns the options array to use in filemanager for forum attachments