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