materio-base-legacy/modules/node/tests/node_test_exception.module
bachy 5658794f17 update to 7.22
Signed-off-by: bachy <git@g-u-i.net>
2013-05-24 13:03:57 +02:00

16 lines
306 B
Plaintext

<?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.');
}
}