Implements hook_node_insert().
function node_test_exception_node_insert($node) { if ($node->title == 'testing_transaction_exception') { throw new Exception('Test exception for rollback.'); } }