I am updating the multiple search block to enable it's use in the resource module and the book module. That part is nearly finished. Now I would like the block to log what people have searched for on our school site. I thought about adding a command like this...
add_to_log($course->id, "block_multiple_search", "search",
"search.php?id=$course->id&search=".urlencode($search),
$search);
... but I don't get what the table mdl_log_display
is used for. I know that every module adds some values in there when the module is installed, but I don't see it being used in the add_to_log
function.
How does it work?