Added function 'local_webhooks_delete_record'
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		
							
								
								
									
										1
									
								
								lib.php
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								lib.php
									
									
									
									
									
								
							@@ -199,6 +199,7 @@ function local_webhooks_delete_record($serviceid) {
 | 
				
			|||||||
    global $DB;
 | 
					    global $DB;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $result = $DB->delete_records(LOCAL_WEBHOOKS_TABLE_SERVICES, array("id" => $serviceid));
 | 
					    $result = $DB->delete_records(LOCAL_WEBHOOKS_TABLE_SERVICES, array("id" => $serviceid));
 | 
				
			||||||
 | 
					    local_webhooks_delete_events_for_service($serviceid);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Clear the plugin cache */
 | 
					    /* Clear the plugin cache */
 | 
				
			||||||
    local_webhooks_cache_reset();
 | 
					    local_webhooks_cache_reset();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user