I have encountered another problem converting a plugin for 3.5.
When I uninstall the plugin I get this error:
So after reading the moodle forums I can see it maybe caused by this line in my uninstall.php code.
$DB->delete_records("event", array("name" => "Tutoring schedule timetable"));
I shouldn't be using these keywords -"event", "name . I tried using backticks but that still causes issues.
Is there a correct way to format the delete_records call. I checked the data manipulation API and I seem to be doing ok ?
We use the code to remove all calendar events on uninstall.
Can someone suggest the correct formatting ?