/** * Deletes the specified event from the system * Returns TRUE on success, FALSE otherwise * * @global wpdb $wpdb * @param type $eventID * @return boolean */ public static function deleteEvent($eventID) { global $wpdb; if (!EventDatabaseManager::eventParticipantsExist($eventID)) { $query = "DELETE FROM datr_Events WHERE eventID = {$eventID}"; $res = $wpdb->query($query); return $res; } return false; }