File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/editor/tiny/plugins/collaborative/classes/external Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,18 +81,18 @@ public static function execute(
81
81
// May have been called by a non-logged in user.
82
82
if (isloggedin () && !isguestuser ()) {
83
83
$ manager = new \tiny_collaborative \change_manager ($ contextid , $ elementid , $ oldcontenthash );
84
- $ manager ->add_collaborative_record ($ oldid , $ newcontenthash , $ changes );
84
+ $ id = $ manager ->add_collaborative_record ($ oldid , $ newcontenthash , $ changes );
85
85
}
86
86
87
- return [] ;
87
+ return $ id ;
88
88
}
89
89
90
90
/**
91
91
* Describe the return structure of the external service.
92
92
*
93
93
* @return external_single_structure
94
94
*/
95
- public static function execute_returns (): external_single_structure {
96
- return new external_single_structure ([] );
95
+ public static function execute_returns (): external_value {
96
+ return new external_value ( PARAM_INT , ' The new id of your entry ' );
97
97
}
98
98
}
You can’t perform that action at this time.
0 commit comments