MyBB Community Forums

Full Version: Warnings hook
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there some sort of hook for warnings that would allow me to do some stuff after a warning is made, using the data from the warning(who made it, who received it, and reason)?
Straight out of the wiki:

./warnings.php

100 warnings_do_warn_start
553 warnings_warning
562 warnings_warn_start
695 warnings_warn_end
733 warnings_do_revoke_start
902 warnings_view_start
995 warnings_view_end
1148 warnings_warning
1157 warnings_end

Hope that helps!
None of those fire when I make a warning :/
What do you mean "make a warning" because the hooks in the warnings.php are sufficient to do just about anything.
Add debug messages to class_plugins.php run_hooks and run_hooks_by_ref then you'll always know which hooks fire when you do whatever you do.