MDL-1626 mod_forum: Create new discussion subscription tracking table
[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
39de876c
AN
4=== 2.8 ===
5 * The following functions have all been marked as deprecated. Many of
df7a4d65 6 these have not been supported in many releases and should not be relied
39de876c
AN
7 upon:
8 forum_count_unrated_posts
9 forum_tp_count_discussion_read_records
10 forum_get_user_discussions
11 forum_tp_count_forum_posts
12 forum_tp_count_forum_read_records
13 forum_get_open_modes
14 forum_get_child_posts
15 forum_get_discussion_posts
16 forum_get_ratings
17 forum_get_tracking_link
18 forum_tp_count_discussion_unread_posts
19 forum_convert_to_roles
20 forum_tp_get_read_records
21 forum_tp_get_discussion_read_records
22 forum_user_enrolled
23 forum_user_can_view_post
24
2ecd2847
FM
25=== 2.6 ===
26
27* The file post_form.php should not be included, the class it contained has
28 been moved so that it can benefit from autoloading.
02d10ca0
MR
29* The function forum_shorten_post() has been deprecated. It was doing a poor
30 job of shortening forum post text and the shorten_text() function does a
31 much better job.
bd8f5d45
EM
32* The constant FORUM_TRACKING_ON has been depreciated and replaced by
33 FORUM_TRACKING_FORCED. The value between them is maintained, so they are
34 interchangeable, but code should migrate to the new name.
2ecd2847 35
f5ad424b
MN
36=== 2.5 ===
37
38The 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
39'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
40as 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
41
42=== 2.3.5, 2.4.2 ===
f5ad424b 43
afd5e85c
RT
44* mod/forum:allowforcesubscribe capability will be forcefully assigned to frontpage role, as it was mistakenly missed off
45when the capability was initially created. If you don't want users with frontpage role to get forum (with forcesubscribe) emails,
2ecd2847 46then please remove this capability for frontpage role.