MDL-30102 mod_forum: adding webservice function to allow for the retrieval of forum discussions