I have a file that runs a mysql query, it runs am irreversible mod action, how can I log the actions for the mod log? It's a php file, I have global.php includedÂ
Use the log_moderator_action function. The whole function can be found in the inc/functions.php file.
/**
* Log the actions of a moderator.
*
* @param array The data of the moderator's action.
* @param string The message to enter for the action the moderator performed.
*/
function log_moderator_action($data, $action="")
What needs to be passed in the data array?
Perfect, thanks to both of you.