view modules/simpletest/tests/upgrade/drupal-7.trigger.database.php @ 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
 * 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();