Example #1
0
function phorum_mod_spamhurdles_addon()
{
    global $PHORUM;
    $args = $PHORUM['args'];
    if (isset($args['hurdle'])) {
        spamhurdles_hurdle_call('addon', $args, array($args['hurdle']));
    }
}
Example #2
0
File: api.php Project: samuell/Core
/**
 * Spam hurdle implementations could be using some form of storage that
 * requires garbage collection management. This function will call
 * the collect_garbage function for all spam hurdles that implement
 * garbage collection.
 */
function spamhurdles_api_collect_garbage()
{
    spamhurdles_hurdle_call('collect_garbage', NULL);
}