Mercurial > hg > rr-repo
comparison modules/simpletest/tests/upgrade/drupal-7.trigger.database.php @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
1 <?php | |
2 /** | |
3 * @file | |
4 * Test content for the trigger upgrade path. | |
5 */ | |
6 | |
7 // Add several trigger configurations. | |
8 db_insert('trigger_assignments')->fields(array( | |
9 'hook', | |
10 'aid', | |
11 'weight', | |
12 )) | |
13 ->values(array( | |
14 'hook' => 'node_presave', | |
15 'aid' => 'node_publish_action', | |
16 'weight' => '1', | |
17 )) | |
18 ->values(array( | |
19 'hook' => 'comment_presave', | |
20 'aid' => 'comment_publish_action', | |
21 'weight' => '1', | |
22 )) | |
23 ->values(array( | |
24 'hook' => 'comment_delete', | |
25 'aid' => 'node_save_action', | |
26 'weight' => '1', | |
27 )) | |
28 ->execute(); |