This hook can be used for logging moderator actions. You can
use the $PHORUM array to retrieve additional info
like the moderating user's id and similar.
The moderation step id is the variable $mod_step
that is used in moderation.php. Please read that
script to see what moderation steps are available and for what moderation
actions they stand.
When checking the moderation step id for a certain step, always use
the contstants that are defined for this in
include/constants.php. The numerical value of this
id can change between Phorum releases.
Call time:
At the start of moderation.php
Hook input:
The id of the moderation step which is run (read-only).
Hook output:
None
Example code:
function phorum_mod_foo_moderation ($mod_step)
{
global $PHORUM;
// Update the last timestamp for the moderation step
$PHORUM["mod_foo"]["moderation_step_timestamps"][$mod_step] = time();
phorum_db_update_settings(array("mod_foo" => $PHORUM["mod_foo"]));
}