From 5115697a62d11157d7878a706f47db599593a203 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 20 Sep 2018 18:36:28 +0400 Subject: Comments added Signed-off-by: Valentin Popov --- index.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 0e03f99..9d42e27 100644 --- a/index.php +++ b/index.php @@ -38,11 +38,13 @@ $baseUrl = new moodle_url( $mainPage ); admin_externalpage_setup( "local_webhooks", "", null, $baseUrl, array() ); $context = context_system::instance(); +/* Remove the service */ if ( !empty( $deleteId ) && confirm_sesskey() ) { local_webhooks_api::delete_service( $deleteId ); redirect( $PAGE->url, new lang_string( "deleted", "moodle" ) ); } +/* Disable / Enable the service */ if ( !empty( $hideShowId ) && confirm_sesskey() ) { $service = local_webhooks_api::get_service( $hideShowId ); $service->status = !(bool) $service->status; -- cgit v1.2.3