What does the log_display table do?

Re: What does the log_display table do?

by Eloy Lafuente (stronk7) -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
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 smile