I am looking for a way to add a new custom field to every activity module in Moodle.
I am struggling to find any way to do it with the best practices not changing the core Moodle code. My current solution was to add a new field directly in courses/moodleform_mod.php
I strongly dislike this approach but I don't see any other workaround.
P.S.
I went through all Custom Fields API documentation and it does not allow changing all modules at once in a single place. So I dont think it's a solution