mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-9848 eventslib improvements and cleanup
This commit is contained in:
parent
cd26d8e047
commit
d46306de6a
10 changed files with 534 additions and 227 deletions
|
@ -121,6 +121,9 @@
|
|||
// Delete the capabilities that were defined by this block
|
||||
capabilities_cleanup('block/'.$block->name);
|
||||
|
||||
// remove entent handlers and dequeue pending events
|
||||
events_uninstall('block/'.$block->name);
|
||||
|
||||
$a->block = $strblockname;
|
||||
$a->directory = $CFG->dirroot.'/blocks/'.$block->name;
|
||||
notice(get_string('blockdeletefiles', '', $a), 'blocks.php');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue