You are here

function community_tags_install in Community Tags 6.2

Same name and namespace in other branches
  1. 5 community_tags.install \community_tags_install()
  2. 6 community_tags.install \community_tags_install()
  3. 7 community_tags.install \community_tags_install()

Implementation of hook_install().

File

./community_tags.install, line 11
The install file for the community_tags module.

Code

function community_tags_install() {

  // Install schema
  drupal_install_schema('community_tags');

  // Drop module weight so we act after taxonomy.
  $weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy'"));
  db_query("UPDATE {system} SET weight = %d WHERE name = 'community_tags'", $weight + 1);
}