Some variables have been removed
This commit is contained in:
parent
f10786bfb0
commit
b6ddc8bd40
@ -64,8 +64,7 @@ class local_webhooks_external extends external_api {
|
|||||||
$context = context_system::instance();
|
$context = context_system::instance();
|
||||||
self::validate_context($context);
|
self::validate_context($context);
|
||||||
|
|
||||||
$result = local_webhooks_change_status($parameters["serviceid"]);
|
return local_webhooks_change_status($parameters["serviceid"]);
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -535,8 +534,7 @@ class local_webhooks_external extends external_api {
|
|||||||
$context = context_system::instance();
|
$context = context_system::instance();
|
||||||
self::validate_context($context);
|
self::validate_context($context);
|
||||||
|
|
||||||
$result = local_webhooks_delete_record($parameters["serviceid"]);
|
return local_webhooks_delete_record($parameters["serviceid"]);
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -571,8 +569,7 @@ class local_webhooks_external extends external_api {
|
|||||||
$context = context_system::instance();
|
$context = context_system::instance();
|
||||||
self::validate_context($context);
|
self::validate_context($context);
|
||||||
|
|
||||||
$result = local_webhooks_delete_all_records();
|
return local_webhooks_delete_all_records();
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -607,8 +604,7 @@ class local_webhooks_external extends external_api {
|
|||||||
$context = context_system::instance();
|
$context = context_system::instance();
|
||||||
self::validate_context($context);
|
self::validate_context($context);
|
||||||
|
|
||||||
$result = local_webhooks_create_backup();
|
return local_webhooks_create_backup();
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
3
lib.php
3
lib.php
@ -116,8 +116,7 @@ function local_webhooks_get_list_records($limitfrom = 0, $limitnum = 0) {
|
|||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function local_webhooks_get_list_events() {
|
function local_webhooks_get_list_events() {
|
||||||
$eventlist = report_eventlist_list_generator::get_all_events_list(true);
|
return report_eventlist_list_generator::get_all_events_list(true);
|
||||||
return $eventlist;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user