You are here

function tac_lite_install in Taxonomy Access Control Lite 6

Same name and namespace in other branches
  1. 8 tac_lite.install \tac_lite_install()
  2. 5 tac_lite.install \tac_lite_install()
  3. 7 tac_lite.install \tac_lite_install()

Implementation of hook_install().

Ensure that tac_lite hooks are invoked after taxonomy module hooks.

File

./tac_lite.install, line 13
Installation functions for tac_lite.

Code

function tac_lite_install() {
  $taxonomy_weight = db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy'"));
  db_query("UPDATE {system} SET weight = %d WHERE name = 'tac_lite'", $taxonomy_weight + 9);

  // Note that it is not necessary to rebuild the node access table here, as
  // that will be done when module settings are saved.
}