function deleteStatus() { global $config; $statusId = intval($_GET['id']); // Move cards under this status to default status Db::execute("UPDATE cards SET status_id = {$config['defaultStatus']}\n WHERE status_id = {$statusId}"); deleteRowById($statusId, 'status_names'); }
function deleteCard() { $cardId = intval($_GET['id']); deleteRowById($cardId, 'cards'); }