Moodle module and default post thumbnail function