I am having a hard time understanding your question, as in; what are you really after?
The event that is triggered for restoring is indeed named "approve", but the
variable defined in the
is set to
This is cause 'approve' and 'restore' share a lot of the same functionallity and events are commonly names after the class/function they are in, and since this function is named
it's named ".._approve_..".
The way I usually find the event I want, is some tracking through Github (or local editor), eventhough I somehow prefer Github.
For example, the mcp 'restore' action leads here: https://github.com/phpbb/phpbb/blob/mas ... ue.php#L52
That calls a function here: https://github.com/phpbb/phpbb/blob/mas ... hp#L60-L64
Which is this function: https://github.com/phpbb/phpbb/blob/mas ... e.php#L687
So yeah, you have the correct function, you justh ave to check for the correct action in the event data!