16
modules/node/tests/node_test_exception.module
Normal file
16
modules/node/tests/node_test_exception.module
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Dummy module implementing node related hooks to test API interaction with
|
||||
* the Node module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_node_insert().
|
||||
*/
|
||||
function node_test_exception_node_insert($node) {
|
||||
if ($node->title == 'testing_transaction_exception') {
|
||||
throw new Exception('Test exception for rollback.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user