Mercurial > hg > rr-repo
view modules/node/tests/node_test_exception.module @ 6:a75ead649730
added biblio, admin_menu and reference modules
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Fri, 20 Sep 2013 11:18:21 +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.'); } }