You are here

function tokenauth_install in Token authentication 6

Same name and namespace in other branches
  1. 5 tokenauth.install \tokenauth_install()
  2. 6.2 tokenauth.install \tokenauth_install()
  3. 7 tokenauth.install \tokenauth_install()

Implementation of hook_install().

File

./tokenauth.install, line 39
Install, update, and uninstall functions for tokenauth.

Code

function tokenauth_install() {
  drupal_install_schema('tokenauth');

  // Tokenauth must authenticate the user before other modules can deny anonymous access.
  db_query("UPDATE {system} SET weight='-15' WHERE name='tokenauth'");
}