aboutsummaryrefslogtreecommitdiff
path: root/lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib.php b/lib.php
index 9f313f5..8fd4807 100644
--- a/lib.php
+++ b/lib.php
@@ -89,13 +89,16 @@ function local_webhooks_search_record($eventname, $limitfrom = 0, $limitnum = 0)
/**
* Get the record from the database.
*
- * @param number $serviceid
- * @return object
+ * @param number $serviceid Service identifier
+ * @return object Service data
*/
function local_webhooks_get_record($serviceid) {
global $DB;
+ /* Loads service data */
$record = $DB->get_record(LOCAL_WEBHOOKS_TABLE_SERVICES, array("id" => $serviceid), "*", IGNORE_MISSING);
+
+ /* Loads service events */
$record->events = local_webhooks_get_list_events_for_service($serviceid);
return $record;