Hi all,
I'm developing a tutor feedback system for moodle, and have a problem with id's not matching up. for example, when the tutor feedback is sending data back to be processed, it also includes the $id variable to identify the module instance, so I can record what instance the data belongs to. however, when I go to say, delete the module, I reckoned all i'd have to do was put an sql query in the delete_instance() function, and i could use this to clear any instance information from my tables. however, the $id provided here is different!
where I'd be expecting a value like 86, I'd get a value like 74!
I haven't been using the get instance functions, as I could get by til now with just the $id variable.
could someone post whatever code I need to get back the 'proper' $id so I can tie the Tutor_feedback instances to my tables?
Jonathan