Our Profile roles plugin has such a listener (actually called an "event observer" in Moodle lingo).
The observer is registered like this, and the code that it runs is here.
The Event API documentation covers events and observers in detail.
Our Profile roles plugin has such a listener (actually called an "event observer" in Moodle lingo).
The observer is registered like this, and the code that it runs is here.
The Event API documentation covers events and observers in detail.