Sorry for not being more clear. I know how to do transactions in SQL. My question is, could I somehow wrap vB's actions in transactions. Something like:
Code:
mysql_query('BEGIN TRANSACTION');
build_new_post();
mysql_query('ROLLBACK');
or, even better:
Code:
$vbulletin->database->begin_transaction();
$dm = init_datamanager(...)
$dm->...
$vbulletin->database->rollback_transaction();
Note: I'm working from memory, so my syntax isn't exact