diff options
Diffstat (limited to 'modules/actions/actions.install')
-rw-r--r-- | modules/actions/actions.install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/actions/actions.install b/modules/actions/actions.install new file mode 100644 index 000000000..9710db461 --- /dev/null +++ b/modules/actions/actions.install @@ -0,0 +1,25 @@ +<?php +// $Id$ + +/** + * Implementation of hook_install(). + */ +function actions_install() { + // Create tables. + drupal_install_schema('actions'); + variable_set('actions_next_id', 0); + + // Do initial sychronization of actions in code and the database. + // For that we need to run code from actions.module. + drupal_load('module', 'actions'); + actions_synchronize(actions_list()); +} + +/** + * Implementation of hook_uninstall(). + */ +function actions_uninstall() { + // Remove tables. + drupal_uninstall_schema('actions'); + variable_del('actions_next_id'); +} |