Skip to content

Commit

Permalink
Merge branch 'MDL-46282-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
Conflicts:
	version.php
  • Loading branch information
Sam Hemelryk committed Sep 30, 2014
2 parents 77218e4 + 6c0bfb1 commit db34f8c
Show file tree
Hide file tree
Showing 11 changed files with 1,807 additions and 3 deletions.
7 changes: 7 additions & 0 deletions lib/adminlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@ function uninstall_plugin($type, $name) {
// Delete scheduled tasks.
$DB->delete_records('task_scheduled', array('component' => $pluginname));

// Delete Inbound Message datakeys.
$DB->delete_records_sql('messageinbound_datakeys',
'handler IN (SELECT id FROM {messageinbound_handlers} WHERE component = ?)', array($pluginname));

// Delete Inbound Message handlers.
$DB->delete_records('messageinbound_handlers', array('component' => $pluginname));

// delete all the logs
$DB->delete_records('log', array('module' => $pluginname));

Expand Down
Loading

0 comments on commit db34f8c

Please sign in to comment.