summaryrefslogtreecommitdiff
path: root/modules/actions/actions.install
blob: 8047d60d3b54503d513ca7e88b7d43b6dcb0aa81 (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
<?php
// $Id$

/**
 * Implementation of hook_install().
 */
function actions_install() {
  // Create tables.
  drupal_install_schema('actions');
  variable_set('actions_next_id', 0);

  // Do initial synchronization 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');
}