blob: 66bc71747100a62379dc97e842a9060fb62746ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
/**
* @file
* A module implementing node related hooks to test API interaction.
*/
/**
* Implements hook_node_insert().
*/
function node_test_exception_node_insert($node) {
if ($node->title == 'testing_transaction_exception') {
throw new Exception('Test exception for rollback.');
}
}
|