]> git.mjollnir.org Git - moodle.git/commitdiff
Now module confguration (records from config) is deleted
authorstronk7 <stronk7>
Wed, 29 Aug 2007 15:14:18 +0000 (15:14 +0000)
committerstronk7 <stronk7>
Wed, 29 Aug 2007 15:14:18 +0000 (15:14 +0000)
when a module is deleted. MDL-11056

admin/modules.php

index 08120caf2738ab8e8c68489725785b158f4f7e9c..7e5e32a35eb964d86b11bb22db094709b60f677c 100644 (file)
                 notify("Error occurred while deleting the $strmodulename record from modules table");
             }
 
+            // And the module configuration records
+            if (!execute_sql("DELETE FROM {$CFG->prefix}config WHERE name LIKE '{$module->name}_%'")) {
+                notify("Error occurred while deleting the $strmodulename records from the config table");
+            }
+
             // Then the tables themselves
 
             if ($tables = $db->Metatables()) {