summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/upgrade/drupal-7.trigger.database.php
blob: 996f711dc10df32667729e6dc249ede6e178970e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
 * @file
 * Test content for the trigger upgrade path.
 */

// Add several trigger configurations.
db_insert('trigger_assignments')->fields(array(
  'hook',
  'aid',
  'weight',
))
->values(array(
  'hook' => 'node_presave',
  'aid' => 'node_publish_action',
  'weight' => '1',
))
->values(array(
  'hook' => 'comment_presave',
  'aid' => 'comment_publish_action',
  'weight' => '1',
))
->values(array(
  'hook' => 'comment_delete',
  'aid' => 'node_save_action',
  'weight' => '1',
))
->execute();