You are here

function signup_install in Signup 7

Same name and namespace in other branches
  1. 5.2 signup.install \signup_install()
  2. 5 signup.install \signup_install()
  3. 6.2 signup.install \signup_install()
  4. 6 signup.install \signup_install()

Implements hook_install().

This will automatically install the database tables for the Signup module for both the MySQL and PostgreSQL databases.

If you are using another database, you will have to install the tables by hand, using the queries below as a reference.

Note that the curly braces around table names are a drupal-specific feature to allow for automatic database table prefixing, and will need to be removed.

File

./signup.install, line 163

Code

function signup_install() {

  // Create tables.
  // TODO The drupal_(un)install_schema functions are called automatically in D7.
  // drupal_install_schema('signup')
  signup_insert_default_signup_info();
}