/** * We call burninate so that Trogdor the Dragon-Man can * burninate the peasants. Or sources as the case may be. * Removes the offending record from the DB. * <code> * SourceAdmin::burninate( $id ); * </code> */ static function burninate($id) { global $wpdb; SourceAdmin::toggle($id, 0); $table = $wpdb->prefix . 'wik_sources'; $u = $wpdb->query("UPDATE {$lifedata} SET enabled= 0 WHERE name= '{$source}'"); $d = $wpdb->query("DELETE FROM {$table} WHERE id = {$id}"); $trogdor = $wpdb->query($d); SourceAdmin::create_widget(); }