You are here

function signature_forum_install in Signatures for Forums 6

Same name and namespace in other branches
  1. 5.2 signature_forum.install \signature_forum_install()
  2. 5 signature_forum.install \signature_forum_install()
  3. 7 signature_forum.install \signature_forum_install()

Implementation of hook_install().

File

./signature_forum.install, line 63
Installs, updates and uninstalls signature_forum module.

Code

function signature_forum_install() {
  drupal_install_schema('signature_forum');
  db_query("INSERT INTO {users_signature} (uid, signature)\n    SELECT uid, signature\n    FROM {users}\n    WHERE signature<>''");
  db_query("UPDATE {users} SET signature=''");
  signature_forum_build_signature_status();
}