Mercurial > hg > rr-repo
view modules/node/tests/node_test_exception.module @ 4:ce11bbd8f642
added modules
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Thu, 19 Sep 2013 10:38:44 +0100 |
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.'); } }