materio-base-legacy/modules/node/tests/node_test_exception.module
bachy 95098773d5 first import
Signed-off-by: bachy <git@g-u-i.net>
2012-10-05 13:50:00 +02:00

17 lines
334 B
Plaintext

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