You are here

function browscap_install in Browscap 6

Same name and namespace in other branches
  1. 8.3 browscap.install \browscap_install()
  2. 8 browscap.install \browscap_install()
  3. 5 browscap.install \browscap_install()
  4. 6.2 browscap.install \browscap_install()
  5. 7 browscap.install \browscap_install()

Implementation of hook_install.

File

./browscap.install, line 13
Install, update and uninstall functions for the Browscap module.

Code

function browscap_install() {

  // Create tables
  drupal_install_schema('browscap');

  // Update the browscap information
  _browscap_import();

  // Record when the browscap information was updated
  variable_set('browscap_imported', time());
}