Moodle release 2.7
[moodle.git] / mod / forum / upgrade.txt
CommitLineData
afd5e85c
RT
1This files describes API changes in /mod/forum/*,
2information provided here is intended especially for developers.
3
2ecd2847
FM
4=== 2.6 ===
5
6* The file post_form.php should not be included, the class it contained has
7 been moved so that it can benefit from autoloading.
02d10ca0
MR
8* The function forum_shorten_post() has been deprecated. It was doing a poor
9 job of shortening forum post text and the shorten_text() function does a
10 much better job.
bd8f5d45
EM
11* The constant FORUM_TRACKING_ON has been depreciated and replaced by
12 FORUM_TRACKING_FORCED. The value between them is maintained, so they are
13 interchangeable, but code should migrate to the new name.
2ecd2847 14
f5ad424b
MN
15=== 2.5 ===
16
17The function forum_check_throttling has been changed so that a warning object is returned when a user has reached the 'Post threshold for warning' or
18'Post threshold for blocking' setting, rather than echoing this on screen. This allows the warning to be moved inside the post form as it can be added
19as a HTML element, where it is more noticeable. False is returned if there is no need to warn, or restrict the user from posting - see MDL-39182.
afd5e85c
RT
20
21=== 2.3.5, 2.4.2 ===
f5ad424b 22
afd5e85c
RT
23* mod/forum:allowforcesubscribe capability will be forcefully assigned to frontpage role, as it was mistakenly missed off
24when the capability was initially created. If you don't want users with frontpage role to get forum (with forcesubscribe) emails,
2ecd2847 25then please remove this capability for frontpage role.