You are here

function contact_install in Contact 6.2

Same name and namespace in other branches
  1. 7.2 contact.install \contact_install()

Implements hook_install().

File

./contact.install, line 70
Install, update and uninstall functions for the contact module.

Code

function contact_install() {

  // Create tables.
  drupal_install_schema('contact');

  // Insert a default contact category.
  db_query("INSERT INTO {contact} (category, recipients, selected, reply) VALUES ('%s', '%s', %d, '%s')", 'Website feedback', variable_get('site_mail', ini_get('sendmail_from')), 1, 0);
}