Can I override a core function from Moodle? I changed the core function setnew_password_and_mail()
and it is working there (moodlelib.php
), but I would love to have that customized on my theme so I have better control depending on what selected theme I have. The function is not even in a class so I can't override a renderer.
I tried Overriding plugin renderer moodle and that worked perfect for a function within a renderer but not one single function in a library.
Thanks :)