Mercurial > hg > rr-repo
view modules/node/tests/node_test_exception.module @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
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.'); } }