summaryrefslogtreecommitdiff
path: root/modules/trigger/trigger.install
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-11 14:50:05 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-11 14:50:05 +0000
commitac7637bc9bf5c4dae43a448511b67daf2825be1a (patch)
tree989d00ed976ff651d954a87b10315a99156f9cbd /modules/trigger/trigger.install
parentf73786d1e4c658c552f3cc103d83bb7801101c77 (diff)
downloadbrdo-ac7637bc9bf5c4dae43a448511b67daf2825be1a.tar.gz
brdo-ac7637bc9bf5c4dae43a448511b67daf2825be1a.tar.bz2
#172773 by numerous contributors: Make the actions interface usable by mere mortals (including rename of actions.module to trigger, but keeping the actions themselfs).
Complete previous history of actions module: - #148410 by jvandyk: added rewrite of the actions module! - #155986 by Uwe: fixed typos. - #155828 by Eaton, pwolanin and jvandyk: let actions live even if actions.module is not turned on
Diffstat (limited to 'modules/trigger/trigger.install')
-rw-r--r--modules/trigger/trigger.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/trigger/trigger.install b/modules/trigger/trigger.install
new file mode 100644
index 000000000..13dd08ae1
--- /dev/null
+++ b/modules/trigger/trigger.install
@@ -0,0 +1,21 @@
+<?php
+// $Id$
+
+/**
+ * Implementation of hook_install().
+ */
+function trigger_install() {
+ // Create tables.
+ drupal_install_schema('trigger');
+
+ // Do initial synchronization of actions in code and the database.
+ actions_synchronize(actions_list());
+}
+
+/**
+ * Implementation of hook_uninstall().
+ */
+function trigger_uninstall() {
+ // Remove tables.
+ drupal_uninstall_schema('trigger');
+}