aboutsummaryrefslogtreecommitdiff
path: root/externallib.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-02-20 13:38:36 +0300
committerValentin Popov <info@valentineus.link>2018-02-20 13:38:36 +0300
commitf10786bfb0dff66cfeb8d9f98d042d23bc314369 (patch)
tree5e166cd7cf22e9e35a97d5f509cc5190489df1f1 /externallib.php
parent899b129d23a7535922ae96264c297970db6ff9f2 (diff)
downloadlocal_webhooks-f10786bfb0dff66cfeb8d9f98d042d23bc314369.tar.xz
local_webhooks-f10786bfb0dff66cfeb8d9f98d042d23bc314369.zip
Update function 'local_webhooks_create_record'
Diffstat (limited to 'externallib.php')
-rw-r--r--externallib.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/externallib.php b/externallib.php
index 39f06e3..0c5cc3d 100644
--- a/externallib.php
+++ b/externallib.php
@@ -388,8 +388,8 @@ class local_webhooks_external extends external_api {
/**
* Create an entry in the database.
*
- * @param array $service
- * @return number
+ * @param array $service
+ * @return boolean
* @since Moodle 2.9 Options available
* @since Moodle 2.2
*/
@@ -413,8 +413,7 @@ class local_webhooks_external extends external_api {
$record->events[$value["name"]] = $value["value"];
}
- $result = local_webhooks_create_record($record);
- return $result;
+ return local_webhooks_create_record($record);
}
/**
@@ -424,7 +423,7 @@ class local_webhooks_external extends external_api {
* @since Moodle 2.2
*/
public static function create_record_returns() {
- return new external_value(PARAM_INT, "Service identifier.");
+ return new external_value(PARAM_BOOL, "The result of the operation.");
}
/**