Merge branch 'MLD-27565-wip' of 'git://github.com/mouneyrac/moodle.git' with changes...
[moodle.git] / lib / db / services.php
index 1d27d63..5b7d809 100644 (file)
@@ -206,6 +206,17 @@ $functions = array(
         'capabilities'=> 'moodle/course:create,moodle/course:visibility',
     ),
 
+    // === message related functions ===
+
+    'moodle_message_send_messages' => array(
+        'classname'   => 'moodle_message_external',
+        'methodname'  => 'send_messages',
+        'classpath'   => 'message/externallib.php',
+        'description' => 'Send messages',
+        'type'        => 'write',
+        'capabilities'=> 'moodle/site:sendmessage',
+    ),
+
     // === notes related functions ===
 
     'moodle_notes_create_notes' => array(