And then for every event I wish to log, I require another entry, eg to log adding a new resource into the groupware_resource table I need:-
INSERT INTO `mdl_log_display` VALUES ('groupware', 'add', 'resource', 'name');
No, the add action for your groupware module exists (it's one of the required actions)!!
You can use another action like:
INSERT INTO `mdl_log_display` VALUES ('groupware', 'add resource', 'resource', 'name');
(if the action is to add a resource to your module)
And the final part "....'resource', 'name');"
tells Moodle to search the resource table to get the name field when the id was equal to the info field saved in log table.
Understand now ?
Ciao
General developer forum
What does the log_display table do?
This discussion has been locked so you can no longer reply to it.