diff options
author | Valentin Popov <info@valentineus.link> | 2018-09-20 17:36:28 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-09-20 17:36:28 +0300 |
commit | 5115697a62d11157d7878a706f47db599593a203 (patch) | |
tree | 92975a6e0e99c6007fcda04b0fd0c108f265c0b1 /index.php | |
parent | 68a1928a4cf812b42a10a62d8374ddabf35e08f4 (diff) | |
download | local_webhooks-5115697a62d11157d7878a706f47db599593a203.tar.xz local_webhooks-5115697a62d11157d7878a706f47db599593a203.zip |
Comments added
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |