Comments have been added
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
27e7f48f36
commit
092d0436e8
7
lib.php
7
lib.php
@ -89,13 +89,16 @@ function local_webhooks_search_record($eventname, $limitfrom = 0, $limitnum = 0)
|
|||||||
/**
|
/**
|
||||||
* Get the record from the database.
|
* Get the record from the database.
|
||||||
*
|
*
|
||||||
* @param number $serviceid
|
* @param number $serviceid Service identifier
|
||||||
* @return object
|
* @return object Service data
|
||||||
*/
|
*/
|
||||||
function local_webhooks_get_record($serviceid) {
|
function local_webhooks_get_record($serviceid) {
|
||||||
global $DB;
|
global $DB;
|
||||||
|
|
||||||
|
/* Loads service data */
|
||||||
$record = $DB->get_record(LOCAL_WEBHOOKS_TABLE_SERVICES, array("id" => $serviceid), "*", IGNORE_MISSING);
|
$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);
|
$record->events = local_webhooks_get_list_events_for_service($serviceid);
|
||||||
|
|
||||||
return $record;
|
return $record;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user