Mercurial > hg > rr-repo
view modules/node/tests/node_test_exception.module @ 9:830c812b520f
added smtp module
author | root <root@paio.local> |
---|---|
date | Mon, 28 Oct 2013 15:34:27 +0000 |
parents | ff03f76ab3fe |
children |
line wrap: on
line source
<?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.'); } }