diff --git a/dev/null b/mod/assignment/rpclib.php
new file mode 100644
index 0000000..c97af72
--- /dev/null
+++ b/mod/assignment/rpclib.php
@@ -0,0 +1,28 @@
+<?php
+
+require_once $CFG->dirroot . '/mod/assignment/lib.php';
+
+function assignment_mnet_publishes() {
+    global $CFG;
+
+    $types = assignment_types();
+    $methods = array();
+
+    foreach ($types as $type => $typename) {
+        $fullpath = $CFG->dirroot.'/mod/assignment/type/'.$type.'/rpclib.php';
+        if (!is_readable($fullpath)) {
+            continue;
+        }
+        require_once($fullpath);
+
+        $function = 'assignment_type_' . $type . '_mnet_publishes';
+        if (!function_exists($function)) {
+            continue;
+        }
+        $methods = array_merge($methods, $function());
+    }
+
+    return $methods;
+}
+
+?>
\ No newline at end of file
