MDL-40054 mod_lesson: replaced 'view all' add_to_log call with an event