From 449a6304d4ce04163bb86a50b3cf2ac392df0246 Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Thu, 26 Mar 2015 18:15:10 +0100 Subject: [PATCH] MDL-49502 forum: Add the new function to the mobile service --- lib/db/services.php | 3 ++- mod/forum/db/services.php | 9 +++++++++ mod/forum/version.php | 2 +- version.php | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lib/db/services.php b/lib/db/services.php index 47eb28c3cb8..277301280d3 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -1023,7 +1023,8 @@ $services = array( 'core_user_remove_user_device', 'core_course_get_courses', 'core_completion_update_activity_completion_status_manually', - 'mod_data_get_databases_by_courses' + 'mod_data_get_databases_by_courses', + 'mod_forum_view_forum', ), 'enabled' => 0, 'restrictedusers' => 0, diff --git a/mod/forum/db/services.php b/mod/forum/db/services.php index 48da4b8d632..66b5a76ea06 100644 --- a/mod/forum/db/services.php +++ b/mod/forum/db/services.php @@ -62,4 +62,13 @@ $functions = array( 'type' => 'read', 'capabilities' => 'mod/forum:viewdiscussion, mod/forum:viewqandawithoutposting' ), + + 'mod_forum_view_forum' => array( + 'classname' => 'mod_forum_external', + 'methodname' => 'view_forum', + 'classpath' => 'mod/forum/externallib.php', + 'description' => 'Simulate the view.php web interface page: trigger events, completion, etc...', + 'type' => 'write', + 'capabilities' => 'mod/forum:viewdiscussion' + ), ); diff --git a/mod/forum/version.php b/mod/forum/version.php index 55b80971f9f..9315fab4712 100644 --- a/mod/forum/version.php +++ b/mod/forum/version.php @@ -24,6 +24,6 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2015031200; // The current module version (Date: YYYYMMDDXX) +$plugin->version = 2015031201; // The current module version (Date: YYYYMMDDXX) $plugin->requires = 2014110400; // Requires this Moodle version $plugin->component = 'mod_forum'; // Full name of the plugin (used for diagnostics) diff --git a/version.php b/version.php index 9495a9cdcef..9172a176a33 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2015032600.00; // YYYYMMDD = weekly release date of this DEV branch. +$version = 2015032600.01; // YYYYMMDD = weekly release date of this DEV branch. // RR = release increments - 00 in DEV branches. // .XX = incremental changes. -- 2.43.0