function emailFactcheckers($pid) { $title = getTitle($pid); $codename = getCodename($pid); $subject = "{$codename} (puzzle {$pid}) needs factchecking attention"; $message = "{$title} (puzzle {$pid}), on which you are a factchecker, was put back into factchecking. Please comment on it letting us know whether, and when, you can take another look at it. Thanks!"; $link = URL . "/puzzle.php?pid={$pid}"; $fcs = getFactcheckersForPuzzle($pid); foreach ($fcs as $uid => $name) { sendEmail($uid, $subject, $message, $link); } }
function displayRemoveFactchecker($pid, $uid) { $factcheckers = getFactcheckersForPuzzle($pid); makeOptionElements($factcheckers, 'removeFactchecker', $uid); }