Newer
Older
Angie Byron
committed
<?php
/**
* @file
Jennifer Hodgdon
committed
* A module implementing node related hooks to test API interaction.
Angie Byron
committed
*/
/**
Dries Buytaert
committed
* Implements hook_node_insert().
Angie Byron
committed
*/
function node_test_exception_node_insert($node) {
if ($node->title == 'testing_transaction_exception') {
Angie Byron
committed
throw new Exception('Test exception for rollback.');
}
}